Procházet zdrojové kódy

Fix a silly bug with the header file

Eric Andersen před 23 roky
rodič
revize
6b4fb152ab
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 3 3
      include/ctype.h
  2. 1 1
      libc/misc/ctype/ctype.c

+ 3 - 3
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))

+ 1 - 1
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