diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-21 12:41:20 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-21 12:41:20 +0200 |
commit | cd9004089fd4ae42cc68fd15f085f42c48494cb4 (patch) | |
tree | f0b690d8866e2f4ae84a0f5cdf9a0a02d3755ec7 /tests/cxx_main_program | |
parent | ee5b12c537115b113ce01708d4a86a4062cdb182 (diff) |
Add test for extreme integer values (INT32_MAX etc.) in AllTypes.
Diffstat (limited to 'tests/cxx_main_program')
-rw-r--r-- | tests/cxx_main_program/SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cxx_main_program/SConscript b/tests/cxx_main_program/SConscript index 4bca1b1f..e78c6b35 100644 --- a/tests/cxx_main_program/SConscript +++ b/tests/cxx_main_program/SConscript @@ -3,6 +3,10 @@ Import("env") +# This is needed to get INT32_MIN etc. macros defined +env = env.Clone() +env.Append(CPPDEFINES = ['__STDC_LIMIT_MACROS']) + # Copy the files to .cxx extension in order to force C++ build. c = Copy("$TARGET", "$SOURCE") env.Command("pb_encode.cxx", "#../pb_encode.c", c) |