Explorar el Código

eliminate gcc dependency for testing char signedness in limits.h

Rich Felker hace 12 años
padre
commit
201995f382
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/limits.h

+ 1 - 1
include/limits.h

@@ -9,7 +9,7 @@
 
 /* Support signed or unsigned plain-char */
 
-#ifdef __CHAR_UNSIGNED__
+#if '\0'-1 > 0
 #define CHAR_MIN 0
 #define CHAR_MAX 255
 #else