From 6f6c4dc2bd8820e6bccb9353ad42c951dc7adcd4 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 29 Jan 2018 22:14:21 +0000 Subject: [PATCH] Add `-D__STDC_LIMIT_MACROS=1` for C++ code. Without this, `UINT*_MAX` are not defined. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d7fcece..958f42ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -467,6 +467,7 @@ function(auto_test target) endfunction() if(BUILD_TOXAV) + add_definitions(-D__STDC_LIMIT_MACROS=1) add_executable(auto_monolith_test auto_tests/monolith_test.cpp ${ANDROID_CPU_FEATURES})