Loading...
include/langinfo.h Libc-498 Libc-997.90.3
--- Libc/Libc-498/include/langinfo.h
+++ Libc/Libc-997.90.3/include/langinfo.h
@@ -30,11 +30,7 @@
 #define	_LANGINFO_H_
 
 #include <_types.h>
-
-#ifndef _NL_ITEM
-typedef	__darwin_nl_item	nl_item;
-#define	_NL_ITEM
-#endif
+#include <_types/_nl_item.h>
 
 #define	CODESET		0	/* codeset name */
 #define	D_T_FMT		1	/* string for formatting date and time */
@@ -102,7 +98,7 @@
 #define	YESEXPR		52	/* affirmative response expression */
 #define	NOEXPR		53	/* negative response expression */
 
-#if !defined(_ANSI_SOURCE)
+#if (__DARWIN_C_LEVEL > __DARWIN_C_ANSI && __DARWIN_C_LEVEL < 200112L) || __DARWIN_C_LEVEL == __DARWIN_C_FULL
 #define	YESSTR		54	/* affirmative response for yes/no queries */
 #define	NOSTR		55	/* negative response for yes/no queries */
 #endif