diff options
author | Milo Yip <miloyip@gmail.com> | 2016-02-08 19:53:49 +0300 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2016-02-08 19:53:49 +0300 |
commit | c53a836a3c972dda987371127f0d7bbd4d14995a (patch) | |
tree | d8fadd96b1b631c95ceed5d2e25c829571b07d3f /example | |
parent | 9f1dcef6b1645a3c3bf34a2c0a85f75e3b3e61dd (diff) |
Try fixing 64-bit printf macro
Diffstat (limited to 'example')
-rw-r--r-- | example/CMakeLists.txt | 2 |
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") |