]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(math.h): Keep declaration of abs on HPUX.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 11 Jun 1995 17:38:42 +0000 (13:38 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 11 Jun 1995 17:38:42 +0000 (13:38 -0400)
From-SVN: r9924

gcc/fixincludes

index e4d6f0c32a148686089bf8d73f9b7bd314df2f2e..c5828e6aa802755766e11aaeeb0236bfee82734b 100755 (executable)
@@ -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]*) {.*}@@' \