[PATCH] {,U}LLONG_{MIN,MAX} with -D_GNU_SOURCE (BZ #1228)

Roland McGrath roland@redhat.com
Tue Sep 13 17:37:00 GMT 2005


I think there was a BZ about this, or maybe an earlier email.
That's not sufficient for:

#define _GNU_SOURCE
#include <limits.h>

to dtrt when it gets the GCC one first.  I think gcc's file should change:

#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L

to:

#if ((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
     || defined (__GLIBC__) ? defined (__USE_ISOC99) : !defined (__STRICT_ANSI__))


Thanks,
Roland



More information about the Libc-hacker mailing list