diff options
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index ef32025..9a72c0b 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -1082,6 +1082,22 @@ fix = { /* + * Some releases of FreeBSD 4 and FreeBSD 5.0 and 5.1 system headers presume + * neither the existence of GCC 4 nor its exact feature set yet break + * (by design?) when __GNUC__ is set beyond 3. + */ +fix = { + hackname = freebsd_gcc4_breakage; + mach = *-*-freebsd*; + files = sys/cdefs.h; + select = '^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \|\| __GNUC__ == 3$'; + c_fix = format; + c_fix_arg = '#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3'; + test_text = '#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ == 3'; +}; + + +/* * Fix these files to use the types we think they should for * ptrdiff_t, size_t, and wchar_t. * |