diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-04 19:01:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 19:01:49 +0000 |
commit | 6549b82535c14912d1fcb3e4dee0d8b03d61fcfd (patch) | |
tree | 05aa8f6cf295a087331cc73afbcbd324052a8485 | |
parent | 4f02562ec18e4690d46ecbfdaf967806ad072bdd (diff) | |
download | external_llvm-6549b82535c14912d1fcb3e4dee0d8b03d61fcfd.zip external_llvm-6549b82535c14912d1fcb3e4dee0d8b03d61fcfd.tar.gz external_llvm-6549b82535c14912d1fcb3e4dee0d8b03d61fcfd.tar.bz2 |
Make this work with VC++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14012 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/Support/DataTypes.h.in | 7 | ||||
-rw-r--r-- | include/llvm/Support/DataTypes.h.in | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/Support/DataTypes.h.in b/include/Support/DataTypes.h.in index d01f8c2..d2269b3 100644 --- a/include/Support/DataTypes.h.in +++ b/include/Support/DataTypes.h.in @@ -30,9 +30,16 @@ # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #endif +#ifndef _MSC_VER // Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. @INCLUDE_INTTYPES_H@ @INCLUDE_SYS_TYPES_H@ +#else +// Visual C++ doesn't provide standard integer headers, but it does provide +// built-in data types. +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +#endif #if !defined(INT64_MAX) /* We couldn't determine INT64_MAX; default it. */ diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in index d01f8c2..d2269b3 100644 --- a/include/llvm/Support/DataTypes.h.in +++ b/include/llvm/Support/DataTypes.h.in @@ -30,9 +30,16 @@ # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #endif +#ifndef _MSC_VER // Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. @INCLUDE_INTTYPES_H@ @INCLUDE_SYS_TYPES_H@ +#else +// Visual C++ doesn't provide standard integer headers, but it does provide +// built-in data types. +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +#endif #if !defined(INT64_MAX) /* We couldn't determine INT64_MAX; default it. */ |