diff options
author | Rical Jasan <ricaljasan@pacific.net> | 2018-02-19 04:37:16 -0800 |
---|---|---|
committer | Rical Jasan <ricaljasan@pacific.net> | 2018-02-21 02:38:42 -0800 |
commit | 862b45026fa67277a554eb329538a7d536311eca (patch) | |
tree | 70b0265c55a4af5b4c11563ce536f19014bc8fe5 /include | |
parent | 999a6dab3ee1c8e77bb348ba2389e7aeb5c062b2 (diff) | |
download | glibc-862b45026fa67277a554eb329538a7d536311eca.zip glibc-862b45026fa67277a554eb329538a7d536311eca.tar.gz glibc-862b45026fa67277a554eb329538a7d536311eca.tar.bz2 |
manual: Update _DEFAULT_SOURCE. [BZ #22862]
The description of the interplay between feature test macros and
compiler options in the description of _DEFAULT_SOURCE is a little
confusing, and dated, so clarify the situation, and don't assume a
specific value for _DEFAULT_SOURCE.
Also, _DEFAULT_SOURCE is supposed to be defined if none of the C/POSIX
feature test macros are defined, but the condition was lacking a test
for _ISOC11_SOURCE, so that is also addressed.
[BZ #22862]
* include/features.h: Add _ISOC11_SOURCE to test for whether
to define _DEFAULT_SOURCE.
* manual/creature.texi (_DEFAULT_SOURCE): Improve
documentation.
Diffstat (limited to 'include')
-rw-r--r-- | include/features.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/features.h b/include/features.h index 137a90b..d22c32e 100644 --- a/include/features.h +++ b/include/features.h @@ -214,7 +214,7 @@ define _DEFAULT_SOURCE. */ #if (defined _DEFAULT_SOURCE \ || (!defined __STRICT_ANSI__ \ - && !defined _ISOC99_SOURCE \ + && !defined _ISOC99_SOURCE && !defined _ISOC11_SOURCE \ && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE \ && !defined _XOPEN_SOURCE)) # undef _DEFAULT_SOURCE |