diff options
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 8f056adef68..4643678026d 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -5211,6 +5211,28 @@ fix = { }; /* + * yvals.h on VxWorks-6 expects the toolchain to provide its own + * version of the header, which we don't do. Arrange to fallback + * on the system definition. + */ +fix = { + hackname = vxworks_next_yvals; + mach = "*-*-vxworks*"; + files = yvals.h; + select = "#include_next <yvals.h>"; + c_fix = format; + c_fix_arg = "#if 0 /* GCC does not provide yvals.h. */\n%1"; + c_fix_arg = "#if .*\n" + "/\\* .*\n" + "(#include_next <yvals.h>\n)"; + + test_text = "#if (defined(__cplusplus) && defined(__GNUC__))\n" + "/* GCC C++ has it's own yvals.h */\n" + "#include_next <yvals.h>\n" + "#else\n"; +}; + +/* * Make it so VxWorks does not include gcc/regs.h accidentally */ fix = { |