summaryrefslogtreecommitdiffstats
path: root/tests/cxx_main_program
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx_main_program')
-rw-r--r--tests/cxx_main_program/SConscript4
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)