OSDN Git Service

DataTypes.h.cmake: Define PRIx32 &c for !HAVE_INTTYPES_H hosts.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Aug 2014 17:00:47 +0000 (17:00 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Aug 2014 17:00:47 +0000 (17:00 +0000)
I supposed PRIx32 might be unused in the tree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215225 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DataTypes.h.cmake

index 1f0c8eb..c015245 100644 (file)
@@ -101,6 +101,13 @@ typedef signed int ssize_t;
 #define PRIu64 "I64u"
 #define PRIx64 "I64x"
 #define PRIX64 "I64X"
+
+#define PRId32 "d"
+#define PRIi32 "i"
+#define PRIo32 "o"
+#define PRIu32 "u"
+#define PRIx32 "x"
+#define PRIX32 "X"
 #endif /* HAVE_INTTYPES_H */
 
 #endif /* _MSC_VER */