more header cleanup and conformance fixes - locale.h, time.h
[musl] / include / locale.h
index 7023023..9da4726 100644 (file)
@@ -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