From cd6213233ea584531cf4c137db838551a3c454ff Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Sat, 25 Oct 2008 03:25:11 +0000 Subject: [PATCH] CMake: Sync'ed DataTypes.h.cmake with DataTypes.h.in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58131 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/DataTypes.h.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake index ad4b1836ad7..4d6fcc8e097 100644 --- a/include/llvm/Support/DataTypes.h.cmake +++ b/include/llvm/Support/DataTypes.h.cmake @@ -40,6 +40,11 @@ # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #endif +#if !defined(__STDC_CONSTANT_MACROS) +# error "Must #define __STDC_CONSTANT_MACROS before " \ + "#including Support/DataTypes.h" +#endif + // Note that includes , if this is a C99 system. #ifdef HAVE_SYS_TYPES_H #include @@ -108,6 +113,14 @@ typedef signed int ssize_t; #define INT32_MAX 2147483647 #define INT32_MIN -2147483648 #define UINT32_MAX 4294967295U +#define INT8_C(C) C +#define UINT8_C(C) C +#define INT16_C(C) C +#define UINT16_C(C) C +#define INT32_C(C) C +#define UINT32_C(C) C ## U +#define INT64_C(C) ((int64_t) C ## LL) +#define UINT64_C(C) ((uint64_t) C ## ULL) #endif /* _MSC_VER */ /* Set defaults for constants which we cannot find. */ -- 2.34.1