From fdac4f1cee1ae8a3b22615b1244b1f962e4641c6 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 16 May 2018 14:16:22 +0200 Subject: [PATCH] fix(CMakeLists.txt): define limit c macros on windows (c++ files) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0d68149e..e4a946c9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -262,6 +262,11 @@ if(ENABLE_DEBUG_LOGS) add_definitions("-DDEBUG_LOGS") endif() +# Enable stdint.h limit macros on C++ files. (Windows only.) +if(MSVC) + add_definitions("-D__STDC_LIMIT_MACROS") +endif() + set(STRICT_OPTIONS_CPP ) set(STRICT_OPTIONS_C ) set(STRICT_OPTIONS_CXX )