This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]