On Mon, Jan 12, 2009 at 09:56:30 -0800, Dan Nicholson wrote:
> Correct me if I'm wrong, but doesn't _GNU_SOURCE
> encompass all of _POSIX_SOURCE _BSD_SOURCE and _SVID_SOURCE? In that
> case, couldn't we just define _GNU_SOURCE on gnu systems and call it a
> day?
>
The feature_test_macros(7) manpage says:
_GNU_SOURCE
Defining this macro (with any value) is equivalent to defining
_BSD_SOURCE, _SVID_SOURCE, _ATFILE_SOURCE, _LARGEFILE64_SOURCE,
_ISOC99_SOURCE, _XOPEN_SOURCE_EXTENDED, _POSIX_SOURCE,
_POSIX_C_SOURCE with the value 200112L (199506L in glibc ver-
sions before 2.5), and _XOPEN_SOURCE with the value 600 (500 in
glibc versions before 2.2). In addition, various GNU-specific
extensions are also exposed. Where standards conflict, BSD def-
initions are disfavored.
so just defining that should be enough, indeed.
Cheers,
Julien
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev