From 774e9becbde554839249485b3ac334baf333c88a Mon Sep 17 00:00:00 2001 From: KimLS Date: Sat, 20 Dec 2014 19:34:56 -0800 Subject: [PATCH] Added __STDC_CONSTANT_MACROS to cmake defines, this should make C++ export the C99 macros even if the standard library isn't quite up to the c++11 standard yet --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 584fe5a64..42ff0db93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,6 +264,8 @@ IF(NOT MSVC) IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reserved-user-defined-literal") ENDIF() + + ADD_DEFINITIONS(-D__STDC_CONSTANT_MACROS) ENDIF(NOT MSVC) #Various definitions