Browse Source

eliminate gcc dependency for testing char signedness in limits.h

Rich Felker 12 năm trước cách đây
mục cha
commit
201995f382
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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