diff options
author | Richard Stallman <rms@gnu.org> | 1993-07-07 18:32:47 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-07-07 18:32:47 +0000 |
commit | e287977a716fb8aff5a719a10d2129804da450b2 (patch) | |
tree | 55c0d2d7641968e20f2c79ff3859c81bac41bc1f | |
parent | f820b89885a556770bebd0f4bc7f245e543ce3cf (diff) | |
download | gcc-e287977a716fb8aff5a719a10d2129804da450b2.zip gcc-e287977a716fb8aff5a719a10d2129804da450b2.tar.gz gcc-e287977a716fb8aff5a719a10d2129804da450b2.tar.bz2 |
Added fixup for __STDC__ == 0 and __STDC__ == 1
cases found in sequent PTX-2.0.x headers.
From-SVN: r4873
-rwxr-xr-x | gcc/fixinc.svr4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index a17247c..ae82612 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 |