diff options
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index dbdabb25c5f..f7f9888969f 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2211,6 +2211,24 @@ fix = { }; /* + * IRIX 6.5 <stdint.h> only works with ISO C99 and errors out + * otherwise. + */ +fix = { + hackname = irix_stdint_c99; + files = stdint.h; + select = "(#ifndef __c99\n)(#error This header file is to be used only for c99 mode compilations)"; + + mach = "mips-sgi-irix6.5"; + c_fix = format; + c_fix_arg = "#if 0\n" + "%2"; + test_text = + "#ifndef __c99\n#error This header file is to be used only for c99 mode compilations\n#else"; +}; + + +/* * IRIX 5.x's stdio.h and IRIX 6.5's internal/stdio_core.h declare * some functions that take a va_list as * taking char *. However, GCC uses void * for va_list, so |