summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/locale.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-07-25 11:47:36 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-08-15 10:56:58 +0200
commit7156bf842e37fc07009d012c35309c5700f9f7cd (patch)
tree1aacfc2f6bc4468bc19f8caa066764864a60b23e /newlib/libc/include/locale.h
parent91ebe04042de36aba91cbf22711553a5591c4a5f (diff)
downloadcygnal-7156bf842e37fc07009d012c35309c5700f9f7cd.tar.gz
cygnal-7156bf842e37fc07009d012c35309c5700f9f7cd.tar.bz2
cygnal-7156bf842e37fc07009d012c35309c5700f9f7cd.zip
Add sys/_locale.h header and fix up headers
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/locale.h')
-rw-r--r--newlib/libc/include/locale.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h
index a195c195e..f74e9c516 100644
--- a/newlib/libc/include/locale.h
+++ b/newlib/libc/include/locale.h
@@ -21,7 +21,9 @@
#define LC_TIME 5
#define LC_MESSAGES 6
-#if __POSIX_VISIBLE >= 200809
+#if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB)
+
+#include <sys/_locale.h>
#define LC_ALL_MASK (1 << LC_ALL)
#define LC_COLLATE_MASK (1 << LC_COLLATE)
@@ -33,9 +35,6 @@
#define LC_GLOBAL_LOCALE ((struct __locale_t *) -1)
-struct __locale_t;
-typedef struct __locale_t *locale_t;
-
#endif /* __POSIX_VISIBLE >= 200809 */
_BEGIN_STD_C