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

This commit is contained in:
KimLS 2014-12-20 19:34:56 -08:00
parent 5cbd741358
commit 774e9becbd

View File

@ -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