mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-04 10:30:47 +00:00
mingw does not support the weak attribute
This commit is contained in:
parent
7e66968c2e
commit
aa0aa08c01
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,9 @@ static Class GSArrayClass;
|
||||||
*/
|
*/
|
||||||
#if !GNUSTEP_WITH_ASAN
|
#if !GNUSTEP_WITH_ASAN
|
||||||
static Class GSInlineArrayClass;
|
static Class GSInlineArrayClass;
|
||||||
|
#if defined(__WIN32)
|
||||||
|
static int (*lsanCheck)(void) = NULL; // No weak symbol support :-(
|
||||||
|
#else
|
||||||
/* For runtime detection of LSAN, we use a weak symbol for one of its
|
/* For runtime detection of LSAN, we use a weak symbol for one of its
|
||||||
* library functions. Then, if lsanCheck is not zero we try to change
|
* library functions. Then, if lsanCheck is not zero we try to change
|
||||||
* behavior to avoid false positives.
|
* behavior to avoid false positives.
|
||||||
|
@ -65,6 +68,7 @@ static Class GSInlineArrayClass;
|
||||||
int __lsan_do_recoverable_leak_check(void) __attribute__((weak));
|
int __lsan_do_recoverable_leak_check(void) __attribute__((weak));
|
||||||
static int (*lsanCheck)(void) = __lsan_do_recoverable_leak_check;
|
static int (*lsanCheck)(void) = __lsan_do_recoverable_leak_check;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This class stores objects inline in data beyond the end of the instance.
|
/* This class stores objects inline in data beyond the end of the instance.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue