diff options
author | Steve Naroff <snaroff@apple.com> | 2008-10-23 23:28:23 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-10-23 23:28:23 +0000 |
commit | 93fbe75a9431e49929c23847880ba61324013ee6 (patch) | |
tree | 966fc65466444401787577a9c602400e8d7a01a9 /include | |
parent | f5cd4f0d70f2da83626cb1eeefe4ae10382c584d (diff) | |
download | external_llvm-93fbe75a9431e49929c23847880ba61324013ee6.zip external_llvm-93fbe75a9431e49929c23847880ba61324013ee6.tar.gz external_llvm-93fbe75a9431e49929c23847880ba61324013ee6.tar.bz2 |
Changes to make the Windows build work...
- Add a file to the VC++ project.
- Make sure the clang driver links against the Transforms library.
- Incorporate changes from patch by Dan Gohman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/DataTypes.h.in | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in index b02eb03..72063f7 100644 --- a/include/llvm/Support/DataTypes.h.in +++ b/include/llvm/Support/DataTypes.h.in @@ -37,6 +37,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 <inttypes.h> includes <stdint.h>, if this is a C99 system. #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> @@ -105,9 +110,14 @@ typedef signed int ssize_t; #define INT32_MAX 2147483647 #define INT32_MIN -2147483648 #define UINT32_MAX 4294967295U -#if !defined(INT64_C) -# define INT64_C(val) val##LL -#endif +#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. */ |