From c53a836a3c972dda987371127f0d7bbd4d14995a Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Tue, 9 Feb 2016 00:53:49 +0800 Subject: [PATCH] Try fixing 64-bit printf macro --- example/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index f4829cc..c6b8449 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")