Force define __STDC_FORMAT_MACROS on all platforms.

This commit is contained in:
XMRig 2017-08-29 23:41:57 +03:00
parent 6f89c51db5
commit 850e355049

View file

@ -125,6 +125,7 @@ else()
set(EXTRA_LIBS pthread)
endif()
add_definitions(/D__STDC_FORMAT_MACROS)
add_definitions(/DUNICODE)
#add_definitions(/DAPP_DEBUG)
@ -148,7 +149,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
if (WIN32)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
add_definitions(/D__STDC_FORMAT_MACROS)
else()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif()