X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flanginfo.h;h=519c061294c0f96fa3bffa40ec9ec3f1da8bd02c;hb=29e4319178cbc2a4e9f058a99ae8098d4b6ac055;hp=b9c556952263db772784f1985cf8cb9e2f8e4bfd;hpb=74eea628cf43355ba2b227f0bb3c31697d637761;p=musl diff --git a/include/langinfo.h b/include/langinfo.h index b9c55695..519c0612 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -5,7 +5,9 @@ extern "C" { #endif -#define __NEED_nl_item +#include +#include + #define __NEED_locale_t #include @@ -74,8 +76,17 @@ extern "C" { #define THOUSEP 0x10001 #define YESEXPR 0x50000 #define NOEXPR 0x50001 + +#define _NL_LOCALE_NAME(cat) (((cat)<<16) | 0xffff) + +#if defined(_GNU_SOURCE) +#define NL_LOCALE_NAME(cat) _NL_LOCALE_NAME(cat) +#endif + +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define YESSTR 0x50002 #define NOSTR 0x50003 +#endif char *nl_langinfo(nl_item); char *nl_langinfo_l(nl_item, locale_t);