X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fgetopt1.c;h=3ccb150ade88afdff6b51a34c5ab5fd4d3e4e453;hp=87ee95e000d2edd46789bca1761a01dc39eee361;hb=046616019def745aeeba3f553cda503affee1e86;hpb=0a95c77f23352aafb08edd85da1c044c02bcb0b7 diff --git a/src/getopt1.c b/src/getopt1.c index 87ee95e..3ccb150 100644 --- a/src/getopt1.c +++ b/src/getopt1.c @@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "getopt.h" -#if !defined (STDC) || !STDC +#if !defined (__STDC__) || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ #ifndef const @@ -44,7 +44,7 @@ with this program; if not, write to the Free Software Foundation, Inc., it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 -#if !defined (_LIBC) && defined (GLIBC) && GLIBC >= 2 +#if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 #include #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE @@ -55,8 +55,8 @@ with this program; if not, write to the Free Software Foundation, Inc., /* This needs to come after some library #include - to get GNU_LIBRARY defined. */ -#ifdef GNU_LIBRARY + to get __GNU_LIBRARY__ defined. */ +#ifdef __GNU_LIBRARY__ #include #endif