about summary refs log tree commit diff
path: root/include/locale.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/locale.h')
-rw-r--r--include/locale.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/locale.h b/include/locale.h
index 70230237..9da47269 100644
--- a/include/locale.h
+++ b/include/locale.h
@@ -53,7 +53,8 @@ char *setlocale (int, const char *);
 struct lconv *localeconv(void);
 
 
-#if 1
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
 
 #define __NEED_locale_t