소스 검색

eliminate gcc dependency for testing char signedness in limits.h

Rich Felker 12 년 전
부모
커밋
201995f382
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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