summaryrefslogtreecommitdiff
path: root/include/xlocale.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-12 20:45:04 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:21 +0200
commit9414f108db466019b6d4fb7ff5d74afc0a6cc285 (patch)
tree924a8a97bcb23dcb402b5611637fd7d6a6d6111e /include/xlocale.h
parentbb2512780405353b1f66ffe93483972b97d1aec9 (diff)
locale.h, xlocale.h: guard *locale functions correctly
change the guard from LOCALE to XLOCALE for uselocale/newlocale... move locale_t to xlocale.h Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/xlocale.h')
-rw-r--r--include/xlocale.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/xlocale.h b/include/xlocale.h
index 82dabdfda..e3def347d 100644
--- a/include/xlocale.h
+++ b/include/xlocale.h
@@ -39,11 +39,11 @@ typedef struct __locale_struct
/* Note: LC_ALL is not a valid index into this array. */
const char *__names[13];
} *__locale_t;
+#else
+# include <bits/uClibc_locale.h>
+#endif
/* POSIX 2008 makes locale_t official. */
typedef __locale_t locale_t;
-#else
-# include <locale.h>
-#endif
#endif /* xlocale.h */