OSDN Git Service

(math.h): Keep declaration of abs on HPUX.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Jun 1995 17:38:42 +0000 (17:38 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Jun 1995 17:38:42 +0000 (17:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9924 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixincludes

index e4d6f0c..c5828e6 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]*) {.*}@@' \