projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch sh and mips setjmp asm from .sub system to .S files
[musl]
/
include
/
langinfo.h
diff --git
a/include/langinfo.h
b/include/langinfo.h
index
4d9e099
..
2153c42
100644
(file)
--- a/
include/langinfo.h
+++ b/
include/langinfo.h
@@
-5,7
+5,10
@@
extern "C" {
#endif
extern "C" {
#endif
-#define __NEED_nl_item
+#include <features.h>
+#include <nl_types.h>
+
+#define __NEED_locale_t
#include <bits/alltypes.h>
#include <bits/alltypes.h>
@@
-73,10
+76,14
@@
extern "C" {
#define THOUSEP 0x10001
#define YESEXPR 0x50000
#define NOEXPR 0x50001
#define THOUSEP 0x10001
#define YESEXPR 0x50000
#define NOEXPR 0x50001
+
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define YESSTR 0x50002
#define NOSTR 0x50003
#define YESSTR 0x50002
#define NOSTR 0x50003
+#endif
char *nl_langinfo(nl_item);
char *nl_langinfo(nl_item);
+char *nl_langinfo_l(nl_item, locale_t);
#ifdef __cplusplus
}
#ifdef __cplusplus
}