[llvm] r215225 - DataTypes.h.cmake: Define PRIx32 &c for !HAVE_INTTYPES_H hosts.

NAKAMURA Takumi geek4civic at gmail.com
Fri Aug 8 10:00:47 PDT 2014


Author: chapuni
Date: Fri Aug  8 12:00:47 2014
New Revision: 215225

URL: http://llvm.org/viewvc/llvm-project?rev=215225&view=rev
Log:
DataTypes.h.cmake: Define PRIx32 &c for !HAVE_INTTYPES_H hosts.

I supposed PRIx32 might be unused in the tree.

Modified:
    llvm/trunk/include/llvm/Support/DataTypes.h.cmake

Modified: llvm/trunk/include/llvm/Support/DataTypes.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.cmake?rev=215225&r1=215224&r2=215225&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/DataTypes.h.cmake (original)
+++ llvm/trunk/include/llvm/Support/DataTypes.h.cmake Fri Aug  8 12:00:47 2014
@@ -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 */





More information about the llvm-commits mailing list