function signature fix: add const qualifier to mempcpy src arg
[oweals/musl.git] / include / locale.h
index 702302378c5aaf0afbe74c38653c84ba433a9260..9da47269e042a0483e323a86c926a1f941d0d81f 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