From 9bb5394eca7bf11a141fb4c551afcb90b8e34747 Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Fri, 14 Nov 1997 02:13:03 +0000 Subject: [PATCH] fixincludes: Be a little more restrictive on what we will substitute to replace definitions... * fixincludes: Be a little more restrictive on what we will substitute to replace definitions of MAXINT for HPUX. From-SVN: r16480 --- gcc/ChangeLog | 5 +++++ gcc/fixincludes | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7aa7bee21f..d52d45f51ee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 13 19:12:33 1997 Brendan Kehoe + + * 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 * dbxout.c (dbxout_symbol_location): Don't assume that variables diff --git a/gcc/fixincludes b/gcc/fixincludes index af03dfb83a9..89c9f717417 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -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 \