X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flanginfo.h;h=2153c42e99e13484be31c7c2db6a7a5f09571c83;hb=5505f6afae9acf37ef565c68a07ca3df7b1ae2cb;hp=4d9e09970d0037d4eff0150ccf347301531e5726;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/langinfo.h b/include/langinfo.h index 4d9e0997..2153c42e 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -5,7 +5,10 @@ extern "C" { #endif -#define __NEED_nl_item +#include +#include + +#define __NEED_locale_t #include @@ -73,10 +76,14 @@ extern "C" { #define THOUSEP 0x10001 #define YESEXPR 0x50000 #define NOEXPR 0x50001 + +#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); #ifdef __cplusplus }