From e2aa5d53db175dff634069cacb31487e3ddb9754 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 11 Oct 2011 12:51:44 +0000 Subject: Add -D__STDC_FORMAT_MACROS to use PRIx64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141663 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/DataTypes.h.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake index 260ed9bb5c..23d87fbb89 100644 --- a/include/llvm/Support/DataTypes.h.cmake +++ b/include/llvm/Support/DataTypes.h.cmake @@ -164,6 +164,11 @@ typedef signed int ssize_t; #ifndef UINT64_C # define UINT64_C(C) C##ui64 #endif + +#ifndef PRIx64 +# define PRIx64 "I64x" +#endif + #endif /* _MSC_VER */ /* Set defaults for constants which we cannot find. */ -- cgit v1.2.3