mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 17:41:05 +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
|
||||
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
|
||||
* library functions. Then, if lsanCheck is not zero we try to change
|
||||
* behavior to avoid false positives.
|
||||
|
@ -65,6 +68,7 @@ static Class GSInlineArrayClass;
|
|||
int __lsan_do_recoverable_leak_check(void) __attribute__((weak));
|
||||
static int (*lsanCheck)(void) = __lsan_do_recoverable_leak_check;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This class stores objects inline in data beyond the end of the instance.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue