Loading...
include/langinfo.h Libc-320 Libc-825.26
--- Libc/Libc-320/include/langinfo.h
+++ Libc/Libc-825.26/include/langinfo.h
@@ -29,12 +29,11 @@
 #ifndef _LANGINFO_H_
 #define	_LANGINFO_H_
 
-#include <sys/cdefs.h>
-#include <sys/types.h>
+#include <_types.h>
 
-#ifndef _NL_ITEM_DECLARED
-typedef	int	nl_item;
-#define	_NL_ITEM_DECLARED
+#ifndef _NL_ITEM
+typedef	__darwin_nl_item	nl_item;
+#define	_NL_ITEM
 #endif
 
 #define	CODESET		0	/* codeset name */
@@ -103,14 +102,14 @@
 #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
 
 #define	CRNCYSTR	56	/* currency symbol */
 
-#if !defined(_ANSI_SOURCE)
+#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
 #define	D_MD_ORDER	57	/* month/day order (local extension) */
 #endif
 
@@ -118,4 +117,8 @@
 char	*nl_langinfo(nl_item);
 __END_DECLS
 
+#ifdef _USE_EXTENDED_LOCALES_
+#include <xlocale/_langinfo.h>
+#endif /* _USE_EXTENDED_LOCALES_ */
+
 #endif /* !_LANGINFO_H_ */