X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/9385eb3d10ebe5eb398c52040ec3dbfba9b0cdcf..fbd86d4cc20b02a10edcca92fb7ae0a143e63cc4:/include/langinfo.h diff --git a/include/langinfo.h b/include/langinfo.h index ab26dd3..27ba0a5 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -29,12 +29,11 @@ #ifndef _LANGINFO_H_ #define _LANGINFO_H_ -#include -#include +#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 */ @@ -110,7 +109,7 @@ typedef int nl_item; #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 @@ __BEGIN_DECLS char *nl_langinfo(nl_item); __END_DECLS +#ifdef _USE_EXTENDED_LOCALES_ +#include +#endif /* _USE_EXTENDED_LOCALES_ */ + #endif /* !_LANGINFO_H_ */