From 81dfdc485e91ca648578a9e6e688730eb93b49c8 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 13 Nov 2000 00:43:39 +0000 Subject: [PATCH] std_cmath.h (abs): Change extern "C" declaration of `abs (double)' to ... * include/c/bits/std_cmath.h (abs): Change extern "C" declaration of `abs (double)' to ... (fabs): this. From-SVN: r37413 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/c/bits/std_cmath.h | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 009168be4350..f705ff2ce680 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2000-11-12 Mark Mitchell + * include/c/bits/std_cmath.h (abs): Change extern "C" declaration + of `abs (double)' to ... + (fabs): this. + * config/os/solaris/solaris2.7/bits/os_defines.h: Define __EXTENSIONS__. diff --git a/libstdc++-v3/include/c/bits/std_cmath.h b/libstdc++-v3/include/c/bits/std_cmath.h index 5a2c50567375..eee7649cc3e9 100644 --- a/libstdc++-v3/include/c/bits/std_cmath.h +++ b/libstdc++-v3/include/c/bits/std_cmath.h @@ -263,13 +263,6 @@ namespace std #endif -#if _GLIBCPP_HAVE___BUILTIN_FABS - inline double - abs(double __x) { return __builtin_fabs(__x); } -#else - extern "C" double abs(double __x); -#endif - extern "C" double acos(double __x); extern "C" double asin(double __x); @@ -298,6 +291,14 @@ namespace std extern "C" double fabs(double __x); #endif +#if _GLIBCPP_HAVE___BUILTIN_FABS + inline double + abs(double __x) { return __builtin_fabs(__x); } +#else + inline double + abs(double __x) { return fabs (__x); } +#endif + extern "C" double floor(double __x); extern "C" double fmod(double __x, double __y); -- 2.43.5