fixincludes: Be a little more restrictive on what we will substitute to replace defin...
authorBrendan Kehoe <brendan@cygnus.com>
Fri, 14 Nov 1997 02:13:03 +0000 (02:13 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 14 Nov 1997 02:13:03 +0000 (19:13 -0700)
        * fixincludes: Be a little more restrictive on what we will
        substitute to replace definitions of MAXINT for HPUX.

From-SVN: r16480

gcc/ChangeLog
gcc/fixincludes

index a7aa7bee21f6bc32ba97a2b6e957046404a73035..d52d45f51eef6a7c8ecf494d66121f3ff416ee11 100644 (file)
@@ -1,3 +1,8 @@
+Thu Nov 13 19:12:33 1997  Brendan Kehoe  <brendan@cygnus.com>
+
+       * fixincludes: Be a little more restrictive on what we will
+       substitute to replace definitions of MAXINT for HPUX.
+
 Thu Nov 13 18:41:02 1997  Michael Meissner  <meissner@cygnus.com>
 
        * dbxout.c (dbxout_symbol_location): Don't assume that variables
index af03dfb83a9dbbf3dc0b151d22e35c813af5e246..89c9f71741765a1db6aa4ec94fd62c1560d4d23c 100755 (executable)
@@ -2916,10 +2916,10 @@ else
 fi
 if [ \! -z "$file_to_fix" ]; then
   echo Checking $file_to_fix
-  sed -e '/[  ]MAXINT[        ]/i\
+  sed -e '/^#[         ]*define[       ]*MAXINT[       ]/i\
 #ifndef MAXINT
 '\
-      -e '/[  ]MAXINT[        ]/a\
+      -e '/^#[         ]*define[       ]*MAXINT[       ]/a\
 #endif
 ' $file_to_fix > /tmp/$base
   if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \