summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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