Why -D_XOPEN_SOURCE=500 for Solaris?

Alexandre Oliva aoliva@redhat.com
Fri Feb 22 21:01:00 GMT 2002


On Feb 23, 2002, Craig Rodrigues <rodrigc@attbi.com> wrote:

> In PR 4915, the submitter asked why on _XOPEN_SOURCE 
> on Solaris is defined to 500 with g++ but not
> with gcc.  

IIRC, it's because libstdc++-v3 depends on some of the features of
Solaris that are only declared/defined when this macro is defined.
Same as -D_GNU_SOURCE on GNU/Linux.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Gcc mailing list