summaryrefslogtreecommitdiff
path: root/libc/stdlib/stdlib.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-15 11:46:59 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-15 11:46:59 +0000
commit71b624b470b75624b0a6b16049e0dacadbfe33d2 (patch)
tree05c5bae94e514d97273521e1f1340b3ef26dba75 /libc/stdlib/stdlib.c
parentf743432d55d26c1c97b20c2895a479318368d5e8 (diff)
Reorganize a bit for IMA
Diffstat (limited to 'libc/stdlib/stdlib.c')
-rw-r--r--libc/stdlib/stdlib.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c
index b8b8e4eb5..211b8fe75 100644
--- a/libc/stdlib/stdlib.c
+++ b/libc/stdlib/stdlib.c
@@ -64,24 +64,12 @@
#include <stdlib.h>
#include <locale.h>
-#ifdef __UCLIBC_DO_XLOCALE
-libc_hidden_proto(isspace_l)
-#else
-libc_hidden_proto(isspace)
-#endif
-
#ifdef __UCLIBC_HAS_WCHAR__
#include <wchar.h>
#include <wctype.h>
#include <bits/uClibc_uwchar.h>
-#ifdef __UCLIBC_DO_XLOCALE
-libc_hidden_proto(iswspace_l)
-#else
-libc_hidden_proto(iswspace)
-#endif
-
#ifdef __UCLIBC_HAS_XLOCALE__
#include <xlocale.h>
#endif /* __UCLIBC_HAS_XLOCALE__ */
@@ -449,8 +437,10 @@ strong_alias(strtoull,strtouq)
#define Wuchar __uwchar_t
#ifdef __UCLIBC_DO_XLOCALE
#define ISSPACE(C) iswspace_l((C), locale_arg)
+libc_hidden_proto(iswspace_l)
#else
#define ISSPACE(C) iswspace((C))
+libc_hidden_proto(iswspace)
#endif
#else /* defined(L__stdlib_wcsto_l) || defined(L__stdlib_wcsto_l_l) */
@@ -459,8 +449,10 @@ strong_alias(strtoull,strtouq)
#define Wuchar unsigned char
#ifdef __UCLIBC_DO_XLOCALE
#define ISSPACE(C) isspace_l((C), locale_arg)
+libc_hidden_proto(isspace_l)
#else
#define ISSPACE(C) isspace((C))
+libc_hidden_proto(isspace)
#endif
#endif /* defined(L__stdlib_wcsto_l) || defined(L__stdlib_wcsto_l_l) */
@@ -600,8 +592,10 @@ unsigned long attribute_hidden __XL_NPP(_stdlib_strto_l)(register const Wchar *
#define Wuchar __uwchar_t
#ifdef __UCLIBC_DO_XLOCALE
#define ISSPACE(C) iswspace_l((C), locale_arg)
+libc_hidden_proto(iswspace_l)
#else
#define ISSPACE(C) iswspace((C))
+libc_hidden_proto(iswspace)
#endif
#else /* defined(L__stdlib_wcsto_ll) || defined(L__stdlib_wcsto_ll_l) */
@@ -610,8 +604,10 @@ unsigned long attribute_hidden __XL_NPP(_stdlib_strto_l)(register const Wchar *
#define Wuchar unsigned char
#ifdef __UCLIBC_DO_XLOCALE
#define ISSPACE(C) isspace_l((C), locale_arg)
+libc_hidden_proto(isspace_l)
#else
#define ISSPACE(C) isspace((C))
+libc_hidden_proto(isspace)
#endif
#endif /* defined(L__stdlib_wcsto_ll) || defined(L__stdlib_wcsto_ll_l) */