]> granicus.if.org Git - clang/commitdiff
Define SIG_ATOMIC_MIN and SIG_ATOMIC_MAX in terms of __SIG_ATOMIC_WIDTH__.
authorKen Dyck <ken.dyck@onsemi.com>
Sun, 22 Nov 2009 15:47:12 +0000 (15:47 +0000)
committerKen Dyck <ken.dyck@onsemi.com>
Sun, 22 Nov 2009 15:47:12 +0000 (15:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/stdint.h

index 0502275c0b0f0d19b106dc35fa659e197495b7ac..15b6eaa627088956c0544be03e50413c9751ffed 100644 (file)
@@ -621,8 +621,8 @@ typedef __uintn_t(__INTMAX_WIDTH__) uintmax_t;
 #define UINTMAX_MAX __UINTN_MAX(__INTMAX_WIDTH__)
 
 /* C99 7.18.3 Limits of other integer types. */
-#define SIG_ATOMIC_MIN INT32_MIN
-#define SIG_ATOMIC_MAX INT32_MAX
+#define SIG_ATOMIC_MIN __INTN_MIN(__SIG_ATOMIC_WIDTH__)
+#define SIG_ATOMIC_MAX __INTN_MAX(__SIG_ATOMIC_WIDTH__)
 #define WINT_MIN       __INTN_MIN(__WINT_WIDTH__)
 #define WINT_MAX       __INTN_MAX(__WINT_WIDTH__)