Add -D__STDC_FORMAT_MACROS to use PRIx64.
[oota-llvm.git] / cmake / modules / HandleLLVMOptions.cmake
index 908bf6cce9c9c938e699815370eb99640a1841f6..9dc1624f446c40668f4f15c9b6156bdb02f20ccf 100644 (file)
@@ -187,6 +187,7 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
 endif( MSVC )
 
 add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
+add_llvm_definitions( -D__STDC_FORMAT_MACROS )
 add_llvm_definitions( -D__STDC_LIMIT_MACROS )
 
 option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON)