From: Sebastian Redl Date: Fri, 6 Feb 2009 23:57:52 +0000 (+0000) Subject: Fix some errors in the new stdint.h. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63b4fe6c118c14707d297f6f879e5e7973b8e6ff;p=clang Fix some errors in the new stdint.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63982 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/stdint.h b/lib/Headers/stdint.h index 5dbe76847b..e7b205a0fc 100644 --- a/lib/Headers/stdint.h +++ b/lib/Headers/stdint.h @@ -35,7 +35,7 @@ */ typedef signed __INT8_TYPE__ int8_t; -typedef unsigned __UINT8_TYPE__ uint8_t; +typedef unsigned __INT8_TYPE__ uint8_t; typedef int8_t int_least8_t; typedef uint8_t uint_least8_t; typedef int8_t int_fast8_t; @@ -73,10 +73,10 @@ typedef uint64_t uint_fast64_t; #if __POINTER_WIDTH__ == 64 typedef int64_t intptr_t; typedef uint64_t uintptr_t; -#else if __POINTER_WIDTH__ == 32 +#elif __POINTER_WIDTH__ == 32 typedef int32_t intptr_t; typedef uint32_t uintptr_t; -#else if __POINTER_WIDTH__ == 16 +#elif __POINTER_WIDTH__ == 16 typedef int16_t intptr_t; typedef uint16_t uintptr_t; #else @@ -152,7 +152,7 @@ typedef __UINTMAX_TYPE__ uintmax_t; #define PTRDIFF_MAX INT64_MAX #define SIZE_MAX UINT64_MAX -#else if __POINTER_WIDTH__ == 32 +#elif __POINTER_WIDTH__ == 32 #define INTPTR_MIN INT32_MIN #define INTPTR_MAX INT32_MAX @@ -161,7 +161,7 @@ typedef __UINTMAX_TYPE__ uintmax_t; #define PTRDIFF_MAX INT32_MAX #define SIZE_MAX UINT32_MAX -#else if __POINTER_WIDTH__ == 16 +#elif __POINTER_WIDTH__ == 16 #define INTPTR_MIN INT16_MIN #define INTPTR_MAX INT16_MAX