From: Richard Kenner Date: Sun, 11 Jun 1995 17:38:42 +0000 (-0400) Subject: (math.h): Keep declaration of abs on HPUX. X-Git-Tag: misc/cutover-egcs-0~4034 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee3ac81d77130be7d1a9edd39507fe16d1a5514d;p=thirdparty%2Fgcc.git (math.h): Keep declaration of abs on HPUX. From-SVN: r9924 --- diff --git a/gcc/fixincludes b/gcc/fixincludes index e4d6f0c32a14..c5828e6aa802 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -1570,7 +1570,7 @@ fi if [ -r ${LIB}/$file ]; then echo Fixing $file, non-const arg sed -e 's@atof(\([ ]*char[ ]*\*[^)]*\))@atof(const \1)@' \ - -e 's@inline int abs(int [a-z][a-z]*) {.*}@@' \ + -e 's@inline int abs(int [a-z][a-z]*) {.*}@extern "C" int abs(int);@' \ -e 's@inline double abs(double [a-z][a-z]*) {.*}@@' \ -e 's@inline int sqr(int [a-z][a-z]*) {.*}@@' \ -e 's@inline double sqr(double [a-z][a-z]*) {.*}@@' \