summaryrefslogtreecommitdiff
path: root/include/llvm/Support/DataTypes.h.in
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-23 17:20:39 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-23 17:20:39 +0000
commit39ac2cbcd8b74db4f86ea4a995a07d810e56af92 (patch)
tree0e6261d371e6a4946883456a006c432230f76c07 /include/llvm/Support/DataTypes.h.in
parentd2fda8a54a2d857ccf2d506ff2c1be1204269b06 (diff)
downloadllvm-39ac2cbcd8b74db4f86ea4a995a07d810e56af92.tar.gz
llvm-39ac2cbcd8b74db4f86ea4a995a07d810e56af92.tar.bz2
llvm-39ac2cbcd8b74db4f86ea4a995a07d810e56af92.tar.xz
Introduce INT64_C macro and unbreak LLVM on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DataTypes.h.in')
-rw-r--r--include/llvm/Support/DataTypes.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in
index 512b349e73..b02eb03d05 100644
--- a/include/llvm/Support/DataTypes.h.in
+++ b/include/llvm/Support/DataTypes.h.in
@@ -105,6 +105,9 @@ 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
#endif /* _MSC_VER */
/* Set defaults for constants which we cannot find. */