refactor headers, especially alltypes.h, and improve C++ ABI compat
[musl] / include / langinfo.h
index 4d9e099..c6349ad 100644 (file)
@@ -5,7 +5,9 @@
 extern "C" {
 #endif
 
-#define __NEED_nl_item
+#include <nl_types.h>
+
+#define __NEED_locale_t
 
 #include <bits/alltypes.h>
 
@@ -77,6 +79,7 @@ extern "C" {
 #define NOSTR 0x50003
 
 char *nl_langinfo(nl_item);
+char *nl_langinfo_l(nl_item, locale_t);
 
 #ifdef __cplusplus
 }