Introduce INT64_C macro and unbreak LLVM on MSVC.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 23 Oct 2008 17:20:39 +0000 (17:20 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 23 Oct 2008 17:20:39 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58039 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DataTypes.h.in

index 512b349e73e848304b25f13beee64c575e0eefec..b02eb03d05f750a82dc3c923d66401996a36d38a 100644 (file)
@@ -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. */