Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2016-02-08 19:53:49 +0300
committerMilo Yip <miloyip@gmail.com>2016-02-08 19:53:49 +0300
commitc53a836a3c972dda987371127f0d7bbd4d14995a (patch)
treed8fadd96b1b631c95ceed5d2e25c829571b07d3f /example
parent9f1dcef6b1645a3c3bf34a2c0a85f75e3b3e61dd (diff)
Try fixing 64-bit printf macro
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index f4829cc8..c6b8449f 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -19,6 +19,8 @@ set(EXAMPLES
include_directories("../include/")
+add_definitions(-D__STDC_FORMAT_MACROS)
+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")