aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/parser/validation/built-in/long/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx/parser/validation/built-in/long/makefile')
-rw-r--r--tests/cxx/parser/validation/built-in/long/makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cxx/parser/validation/built-in/long/makefile b/tests/cxx/parser/validation/built-in/long/makefile
index 9a49936..e71fa57 100644
--- a/tests/cxx/parser/validation/built-in/long/makefile
+++ b/tests/cxx/parser/validation/built-in/long/makefile
@@ -28,6 +28,13 @@ $(driver): $(obj) $(xerces_c.l)
$(obj) $(dep): cpp_options := -I$(out_base) -I$(src_base) -I$(src_root)/libxsd
$(obj) $(dep): $(xerces_c.l.cpp-options)
+# Define XSD_CXX11 since we include libxsd headers directly.
+#
+$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
+ifeq ($(cxx_standard),c++11)
+$(obj) $(dep): cpp_options += -DXSD_CXX11
+endif
+
$(call include-dep,$(dep),$(obj),$(gen))
# Convenience alias for default target.