projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add MOD_TAI to sys/timex.h and update STA_RONLY
[musl]
/
include
/
locale.h
diff --git
a/include/locale.h
b/include/locale.h
index
7023023
..
c6cc1ec
100644
(file)
--- a/
include/locale.h
+++ b/
include/locale.h
@@
-5,6
+5,8
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
#undef NULL
#ifdef __cplusplus
#define NULL 0
#undef NULL
#ifdef __cplusplus
#define NULL 0
@@
-53,7
+55,8
@@
char *setlocale (int, const char *);
struct lconv *localeconv(void);
struct lconv *localeconv(void);
-#if 1
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
#define __NEED_locale_t
#define __NEED_locale_t