summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-19 02:09:48 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-19 02:09:48 +0200
commit7aa9c2486c2d85a8de6204ab3734f457d450cdb6 (patch)
tree7ce42796e9613af1c50ffe8676f4bf5f85d44b27 /libc/misc
parent93f8a2e834eed69aff7ef3be8c2baba14bab0658 (diff)
remove a few more empty #if/#endif pairs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/fnmatch/fnmatch.c7
-rw-r--r--libc/misc/time/time.c3
2 files changed, 4 insertions, 6 deletions
diff --git a/libc/misc/fnmatch/fnmatch.c b/libc/misc/fnmatch/fnmatch.c
index f069e5cea..d25619b34 100644
--- a/libc/misc/fnmatch/fnmatch.c
+++ b/libc/misc/fnmatch/fnmatch.c
@@ -340,10 +340,9 @@ is_char_class (const wchar_t *wcs)
# include "fnmatch_loop.c"
# endif
-#ifdef __UCLIBC_HAS_WCHAR__
-#else
-#undef MB_CUR_MAX
-#define MB_CUR_MAX 1
+#ifndef __UCLIBC_HAS_WCHAR__
+# undef MB_CUR_MAX
+# define MB_CUR_MAX 1
#endif
int
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index 05971389f..583c17aad 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -1172,8 +1172,7 @@ LOOP:
i = 16 + 6; /* 0-fill, width = 4 */
}
-#ifdef __UCLIBC_HAS_TM_EXTENSIONS__
-#else
+#ifndef __UCLIBC_HAS_TM_EXTENSIONS__
__UCLIBC_MUTEX_UNLOCK(_time_tzlock);
if (*p == 'Z') {
goto OUTPUT;