summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-17 19:51:36 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-17 19:51:36 +0000
commit6b4fb152ab9849b400398751d48995d326ad0ee0 (patch)
tree8fb9c449668bd452c5c98a1f5dfa42f8eafeaeb5
parent258f0380264acd8972bafabf463823514b6e13e8 (diff)
Fix a silly bug with the header file
-rw-r--r--include/ctype.h6
-rw-r--r--libc/misc/ctype/ctype.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/ctype.h b/include/ctype.h
index 9cacab906..546d032f9 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -8,8 +8,6 @@
__BEGIN_DECLS
-/* Locale-compatible macros/inlines have yet to be implemented. */
-#if defined(__UCLIBC_HAS_LOCALE__) && !defined(__USE_CTYPE_C_MACROS)
/* function prototpes */
extern int isalnum(int c);
@@ -30,7 +28,9 @@ extern int toascii(int c);
extern int tolower(int c);
extern int toupper(int c);
-#else
+
+/* Locale-compatible macros/inlines have yet to be implemented. */
+#if defined(__USE_CTYPE_MACROS) && !defined __UCLIBC_HAS_LOCALE__
/* macro definitions */
#define isalnum(c) (isalpha(c) || isdigit(c))
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c
index dee4adbfd..5dc35cc72 100644
--- a/libc/misc/ctype/ctype.c
+++ b/libc/misc/ctype/ctype.c
@@ -11,7 +11,7 @@
* used ideas is part of the GNU C Library.
*/
-#define __USE_CTYPE_C_MACROS
+#define __USE_CTYPE_MACROS
#include <ctype.h>
#ifdef L_isascii