From: Richard Stallman Date: Wed, 7 Jul 1993 18:32:47 +0000 (+0000) Subject: Added fixup for __STDC__ == 0 and __STDC__ == 1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e287977a716fb8aff5a719a10d2129804da450b2;p=gcc.git Added fixup for __STDC__ == 0 and __STDC__ == 1 cases found in sequent PTX-2.0.x headers. From-SVN: r4873 --- diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index a17247ce8ee..ae826128350 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -185,8 +185,9 @@ while [ $# != 0 ]; do /#[a-z]*if.*[ (]ns32000/ s/\([^_]\)ns32000/\1__ns32000__/g /#[a-z]*if.*[ (]pyr/ s/\([^_]\)pyr/\1__pyr__/g /#[a-z]*if.*[ (]is68k/ s/\([^_]\)is68k/\1__is68k__/g - s/__STDC__ == 0/!defined (__STRICT_ANSI__)/g - s/__STDC__ != 0/defined (__STRICT_ANSI__)/g + s/__STDC__[ ][ ]*==[ ][ ]*0/!defined (__STRICT_ANSI__)/g + s/__STDC__[ ][ ]*==[ ][ ]*1/defined (__STRICT_ANSI__)/g + s/__STDC__[ ][ ]*!=[ ][ ]*0/defined (__STRICT_ANSI__)/g s/__STDC__ - 0 == 0/!defined (__STRICT_ANSI__)/g ' $2/$file > $2/$file.sed mv $2/$file.sed $2/$file