This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH v3] Initial support for C11 Annex K Bounds checking functions
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Ulrich Bayer <ubayer at sba-research dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 14 Jun 2013 22:54:12 -0700
- Subject: Re: [RFC][PATCH v3] Initial support for C11 Annex K Bounds checking functions
- References: <51B1B444 dot 8080608 at sba-research dot org> <51B43794 dot 1020300 at cs dot ucla dot edu> <51BAF465 dot 4010203 at sba-research dot org> <51BB406C dot 10903 at cs dot ucla dot edu> <51BB4CC9 dot 8050402 at sba-research dot org> <51BB4F14 dot 9020603 at cs dot ucla dot edu> <51BB67E3 dot 5060103 at sba-research dot org>
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