summaryrefslogtreecommitdiffstats
path: root/libc/string
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-19 02:09:48 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-09-18 17:17:32 -0700
commit55fa359b3f06fd01ee30267c7795b2dd1cf32bf2 (patch)
tree874970b5dd8c160eea862f90798b04c40e4176ca /libc/string
parent0937a4c490a370744c539bd31decfd9e4e61db55 (diff)
downloaduClibc-alpine-55fa359b3f06fd01ee30267c7795b2dd1cf32bf2.tar.bz2
uClibc-alpine-55fa359b3f06fd01ee30267c7795b2dd1cf32bf2.tar.xz
remove a few more empty #if/#endif pairs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/_collate.c7
-rw-r--r--libc/string/strncasecmp.c2
2 files changed, 2 insertions, 7 deletions
diff --git a/libc/string/_collate.c b/libc/string/_collate.c
index eadbd6c6e..77d9eb62c 100644
--- a/libc/string/_collate.c
+++ b/libc/string/_collate.c
@@ -19,9 +19,6 @@
#include <errno.h>
#include <assert.h>
-#ifdef WANT_WIDE
-#endif
-
#ifdef __UCLIBC_HAS_LOCALE__
#if defined(L_strxfrm) || defined(L_strxfrm_l) || defined(L_wcsxfrm) || defined(L_wcsxfrm_l)
@@ -512,9 +509,9 @@ int __XL_NPP(wcscoll) (const Wchar *s0, const Wchar *s1 __LOCALE_PARAM )
if (!CUR_COLLATE->num_weights) { /* C locale */
#ifdef WANT_WIDE
return wcscmp(s0, s1);
-#else /* WANT_WIDE */
+#else
return strcmp(s0, s1);
-#endif /* WANT_WIDE */
+#endif
}
pass = 0;
diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c
index b290e5a22..2af305e16 100644
--- a/libc/string/strncasecmp.c
+++ b/libc/string/strncasecmp.c
@@ -21,8 +21,6 @@
# ifdef __UCLIBC_DO_XLOCALE
# define TOLOWER(C) tolower_l((C), locale_arg)
# else
-#if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__
-#endif
# define TOLOWER(C) tolower((C))
# endif
#endif