aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/config/vxworks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index a89e3d6..f76141f 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -286,6 +286,12 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
if (!flag_isoc99 && !c_dialect_cxx()) \
builtin_define ("_ALLOW_KEYWORD_MACROS"); \
} \
+ /* C++ support relies on C99 features from C++11, even C++98 \
+ for listdc++ in particular, with corresponding checks at \
+ configure time. Make sure C99 features are exposed by the \
+ system headers. */ \
+ if (c_dialect_cxx()) \
+ builtin_define("_C99"); \
} \
while (0)