Explorar o código

eliminate gcc dependency for testing char signedness in limits.h

Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
201995f382
Modificáronse 1 ficheiros con 1 adicións e 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