Add -D__STDC_LIMIT_MACROS=1 for C++ code.

Without this, `UINT*_MAX` are not defined.
This commit is contained in:
iphydf 2018-01-29 22:14:21 +00:00
parent 6e0ac337c9
commit 6f6c4dc2bd
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -467,6 +467,7 @@ function(auto_test target)
endfunction() endfunction()
if(BUILD_TOXAV) if(BUILD_TOXAV)
add_definitions(-D__STDC_LIMIT_MACROS=1)
add_executable(auto_monolith_test add_executable(auto_monolith_test
auto_tests/monolith_test.cpp auto_tests/monolith_test.cpp
${ANDROID_CPU_FEATURES}) ${ANDROID_CPU_FEATURES})