Commit 9bb5394e by Brendan Kehoe Committed by Jeff Law

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
parent d863830b
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> Thu Nov 13 18:41:02 1997 Michael Meissner <meissner@cygnus.com>
* dbxout.c (dbxout_symbol_location): Don't assume that variables * dbxout.c (dbxout_symbol_location): Don't assume that variables
......
...@@ -2916,10 +2916,10 @@ else ...@@ -2916,10 +2916,10 @@ else
fi fi
if [ \! -z "$file_to_fix" ]; then if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix echo Checking $file_to_fix
sed -e '/[ ]MAXINT[ ]/i\ sed -e '/^#[ ]*define[ ]*MAXINT[ ]/i\
#ifndef MAXINT #ifndef MAXINT
'\ '\
-e '/[ ]MAXINT[ ]/a\ -e '/^#[ ]*define[ ]*MAXINT[ ]/a\
#endif #endif
' $file_to_fix > /tmp/$base ' $file_to_fix > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \ if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment