According to:

https://sourceforge.net/p/predef/wiki/Libraries/
The macro used for old glibc is __GNU_LIBRARY__ and the new one is __GLIBC__.
Try to fix linux compilation by detecting both.
This commit is contained in:
christos 2018-04-16 16:11:40 +00:00
parent b91714d723
commit 4f1477379d
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ my_realloc (p, n)
#endif /* __GNU_LIBRARY__ */
#if !defined __alloca && !defined __GNU_LIBRARY__
#if !defined __alloca && !(defined __GNU_LIBRARY__ || defined __GLIBC__)
# ifdef __GNUC__
# undef alloca