summaryrefslogtreecommitdiffstats
path: root/include/langinfo.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-04-19 12:38:01 +0000
committerjilles <jilles@FreeBSD.org>2014-04-19 12:38:01 +0000
commit754adcc08a3ed6ae332dc040469e290a1783411d (patch)
tree0d17573edee04601b4b65e9ccb61465af27b2f05 /include/langinfo.h
parentd463e40e3700d66025df34d85a22137fb69dfe32 (diff)
downloadFreeBSD-src-754adcc08a3ed6ae332dc040469e290a1783411d.zip
FreeBSD-src-754adcc08a3ed6ae332dc040469e290a1783411d.tar.gz
langinfo.h: Hide YESSTR and NOSTR in strict POSIX mode.
YESSTR and NOSTR are obsolete and are only in old SUS.
Diffstat (limited to 'include/langinfo.h')
-rw-r--r--include/langinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/langinfo.h b/include/langinfo.h
index 8c88efc..46e38c7 100644
--- a/include/langinfo.h
+++ b/include/langinfo.h
@@ -103,7 +103,7 @@ typedef __nl_item nl_item;
#define YESEXPR 52 /* affirmative response expression */
#define NOEXPR 53 /* negative response expression */
-#if __BSD_VISIBLE || __XSI_VISIBLE <= 500
+#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE <= 500)
#define YESSTR 54 /* affirmative response for yes/no queries */
#define NOSTR 55 /* negative response for yes/no queries */
#endif
OpenPOWER on IntegriCloud