This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: Is -D_XOPEN_SOURCE=500 necessary in gcc/config/sparc/sol2.h?


On Tue, Jul 10, 2001 at 03:45:12PM -0300, Alexandre Oliva wrote:
> On Jul 10, 2001, Gerhard Franke <Gerhard.Franke@mni.fh-giessen.de> wrote:
 
> > Can I safely remove the -D_XOPEN_SOURCE=500 or replace it with some
> > other less offensive defines?
 
> I'm afraid this would render libstdc++-v3 useless.

Why this?

I just recompiled gcc-3.0 without -D_XOPEN_SOURCE=500 and now it
seems that everything is working...

Why doesn't g++ let the "application writer" decide wether to
define _XOPEN_SOURCE=500 or not?

from sys/feature-tests.h:
* application writers wishing to utilize UNIX 98 functionality
* must define _XOPEN_SOURCE=500.  This turns on UNIX 95 functionality
* which is a subset of UNIX 98, and also turns on POSIX Realtime and
* POSIX Threads functionality.


Gerhard


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