Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Apr 2014 12:38:02 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264676 - head/include
Message-ID:  <201404191238.s3JCc2Kr039155@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sat Apr 19 12:38:01 2014
New Revision: 264676
URL: http://svnweb.freebsd.org/changeset/base/264676

Log:
  langinfo.h: Hide YESSTR and NOSTR in strict POSIX mode.
  
  YESSTR and NOSTR are obsolete and are only in old SUS.

Modified:
  head/include/langinfo.h

Modified: head/include/langinfo.h
==============================================================================
--- head/include/langinfo.h	Sat Apr 19 06:32:51 2014	(r264675)
+++ head/include/langinfo.h	Sat Apr 19 12:38:01 2014	(r264676)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404191238.s3JCc2Kr039155>