diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-12 20:45:04 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:21 +0200 |
commit | 9414f108db466019b6d4fb7ff5d74afc0a6cc285 (patch) | |
tree | 924a8a97bcb23dcb402b5611637fd7d6a6d6111e /include/locale.h | |
parent | bb2512780405353b1f66ffe93483972b97d1aec9 (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/locale.h')
-rw-r--r-- | include/locale.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/locale.h b/include/locale.h index b79626a46..a1bff85ae 100644 --- a/include/locale.h +++ b/include/locale.h @@ -133,7 +133,7 @@ libc_hidden_proto(localeconv) __END_NAMESPACE_STD -#if defined __USE_XOPEN2K8 && defined __UCLIBC_HAS_LOCALE__ +#if defined __USE_XOPEN2K8 && defined __UCLIBC_HAS_XLOCALE__ /* The concept of one static locale per category is not very well thought out. Many applications will need to process its data using information from several different locales. Another application is @@ -145,13 +145,8 @@ __END_NAMESPACE_STD Attention: all these functions are *not* standardized in any form. This is a proof-of-concept implementation. */ -#ifdef __UCLIBC_HAS_XLOCALE__ /* Get locale datatype definition. */ # include <xlocale.h> -#endif - -/* POSIX 2008 makes locale_t official. */ -typedef __locale_t locale_t; /* Return a reference to a data structure representing a set of locale datasets. Unlike for the CATEGORY parameter for `setlocale' the |