From: Manfred Hollstein Date: Sun, 19 Apr 1998 06:48:07 +0000 (+0000) Subject: fix-header.c (enum special_file): Undefine enumerators if they are already defined... X-Git-Tag: prereleases/egcs-1.1-prerelease~1629 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f1817ee4f8e9ccf661d33523dde9224dd99ed1e;p=thirdparty%2Fgcc.git fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files. d * fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files. * fixproto (rel_source_file in unistd.h stdlib.h): Prefix file protection macro with '__' to not pollute user namespace. From-SVN: r19297 --- diff --git a/gcc/fix-header.c b/gcc/fix-header.c index f6cc5e8d6d97..979cde3fb544 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -127,9 +127,21 @@ char *inf_ptr; enum special_file { no_special, +#ifdef errno_h +#undef errno_h +#endif errno_h, +#ifdef stdio_h +#undef stdio_h +#endif stdio_h, +#ifdef stdlib_h +#undef stdlib_h +#endif stdlib_h, +#ifdef sys_stat_h +#undef sys_stat_h +#endif sys_stat_h };