summaryrefslogtreecommitdiff
path: root/include/llvm/Support/DataTypes.h.cmake
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-05 08:57:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-05 08:57:40 +0000
commit41a964931a0e0943ceef28b0c691843bf8ca87b7 (patch)
treece6a507970b4633d36e6d800531f0c1c50860fc3 /include/llvm/Support/DataTypes.h.cmake
parent965d2feeddd4bb672396e620b8c2f402f7bb99d6 (diff)
downloadllvm-41a964931a0e0943ceef28b0c691843bf8ca87b7.tar.gz
llvm-41a964931a0e0943ceef28b0c691843bf8ca87b7.tar.bz2
llvm-41a964931a0e0943ceef28b0c691843bf8ca87b7.tar.xz
Add more PRI.64 macros for MSVC and use them throughout the codebase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DataTypes.h.cmake')
-rw-r--r--include/llvm/Support/DataTypes.h.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake
index 8c0220a489..2c03f45602 100644
--- a/include/llvm/Support/DataTypes.h.cmake
+++ b/include/llvm/Support/DataTypes.h.cmake
@@ -167,9 +167,24 @@ typedef signed int ssize_t;
# define UINT64_C(C) C##ui64
#endif
+#ifndef PRId64
+# define PRId64 "I64d"
+#endif
+#ifndef PRIi64
+# define PRIu64 "I64i"
+#endif
+#ifndef PRIo64
+# define PRIx64 "I64o"
+#endif
+#ifndef PRIu64
+# define PRIu64 "I64u"
+#endif
#ifndef PRIx64
# define PRIx64 "I64x"
#endif
+#ifndef PRIX64
+# define PRIX64 "I64X"
+#endif
#endif /* _MSC_VER */