From bb2512780405353b1f66ffe93483972b97d1aec9 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 12 Mar 2011 20:41:33 +0100 Subject: do not include xlocale.h, it is included by locale.h when needed Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/ctype/ctype.c | 4 ---- libc/misc/locale/locale.c | 4 +--- libc/misc/time/time.c | 4 ---- libc/misc/wctype/_wctype.c | 4 ---- 4 files changed, 1 insertion(+), 15 deletions(-) (limited to 'libc/misc') diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index 1c40b244a..a3e4cfc3f 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -36,10 +36,6 @@ #include #include -#ifdef __UCLIBC_HAS_XLOCALE__ -# include -#endif - /**********************************************************************/ #ifdef __UCLIBC_HAS_CTYPE_TABLES__ diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c index e8fddf67c..7085629c4 100644 --- a/libc/misc/locale/locale.c +++ b/libc/misc/locale/locale.c @@ -85,19 +85,17 @@ #endif #endif -/* Need to include this before locale.h and xlocale.h! */ +/* Need to include this before locale.h! */ #include #undef CODESET_LIST #define CODESET_LIST (__locale_mmap->codeset_list) #ifdef __UCLIBC_HAS_XLOCALE__ -#include #include #else /* __UCLIBC_HAS_XLOCALE__ */ /* We need this internally... */ #define __UCLIBC_HAS_XLOCALE__ 1 -#include #include #undef __UCLIBC_HAS_XLOCALE__ #endif /* __UCLIBC_HAS_XLOCALE__ */ diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index 534a7aa9a..ee1c0c532 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -149,10 +149,6 @@ #ifdef __UCLIBC_HAS_WCHAR__ #include #endif -#ifdef __UCLIBC_HAS_XLOCALE__ -#include -#endif - #ifndef __isleap #define __isleap(y) ( !((y) % 4) && ( ((y) % 100) || !((y) % 400) ) ) diff --git a/libc/misc/wctype/_wctype.c b/libc/misc/wctype/_wctype.c index 89269f45e..54ac5ad4b 100644 --- a/libc/misc/wctype/_wctype.c +++ b/libc/misc/wctype/_wctype.c @@ -41,10 +41,6 @@ # error xlocale functionality is not supported in stub locale mode. #endif -#ifdef __UCLIBC_HAS_XLOCALE__ -# include -#endif - /* We know wide char support is enabled. We wouldn't be here otherwise. */ /* Define this if you want to unify the towupper and towlower code in the -- cgit v1.2.3