diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-10-20 22:01:51 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-10-20 22:01:51 -0400 |
commit | 8f0359605a24277e3d67f2b9e3477437a7d38706 (patch) | |
tree | 719f2bd1739afd1124fe484a442e70310e70ea2a /include/langinfo.h | |
parent | 38b9c0274974a1b9941adb2e59238b153704151f (diff) | |
download | musl-8f0359605a24277e3d67f2b9e3477437a7d38706.tar.gz musl-8f0359605a24277e3d67f2b9e3477437a7d38706.tar.xz musl-8f0359605a24277e3d67f2b9e3477437a7d38706.zip |
fix multiple minor namespace issues in headers
fcntl.h: AT_* is not a reserved namespace so extensions cannot be exposed by default. langinfo.h: YESSTR and NOSTR were removed from the standard. limits.h: NL_NMAX was removed from the standard. signal.h: the conditional for NSIG was wrongly checking _XOPEN_SOURCE rather than _BSD_SOURCE. this was purely a mistake; it doesn't even match the commit message from the commit that added it.
Diffstat (limited to 'include/langinfo.h')
-rw-r--r-- | include/langinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/langinfo.h b/include/langinfo.h index c6349ad1..2153c42e 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -5,6 +5,7 @@ extern "C" { #endif +#include <features.h> #include <nl_types.h> #define __NEED_locale_t @@ -75,8 +76,11 @@ extern "C" { #define THOUSEP 0x10001 #define YESEXPR 0x50000 #define NOEXPR 0x50001 + +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define YESSTR 0x50002 #define NOSTR 0x50003 +#endif char *nl_langinfo(nl_item); char *nl_langinfo_l(nl_item, locale_t); |