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


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: [RFC][PATCH v3] Initial support for C11 Annex K Bounds checking functions


On 06/14/2013 11:58 AM, Ulrich Bayer wrote:
> CPP suppresses all warnings from system headers

Ah, sorry, I'd missed that, so I guess we'll need to use #error
after all.  Too bad.  How about this instead?

#if (defined __GLIBC_USE_LIB_EXT1 \
     && (__GLIBC_USE_LIB_EXT1 != __STDC_WANT_LIB_EXT1__))
# error "Inconsistent definition of __STDC_WANT_LIB_EXT1__"
#endif
#if __STDC_WANT_LIB_EXT1__
# define __GLIBC_USE_LIB_EXT1 1
#else
# define __GLIBC_USE_LIB_EXT1 0
#endif


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