This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Define _XOPEN_SOURCE to 500 in gthr-posix.h
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Thiemo Seufer <ths at networkno dot de>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Apr 2007 19:22:13 +0200
- Subject: Re: [PATCH] Define _XOPEN_SOURCE to 500 in gthr-posix.h
- References: <20070425154049.GC5677@networkno.de> <jey7kg1jev.fsf@sykes.suse.de>
* Andreas Schwab:
> Such feature test macros should only be defined before the inclusion of
> the first system header. Definining them later results in undefined
> behaviour.
And what's worse: This header can be included indirectly in user
programs. The offending function calls really need to be moved into
some library.