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
This commit is contained in:
Mark Mitchell 2000-11-13 00:43:39 +00:00 committed by Mark Mitchell
parent b5430af63f
commit 81dfdc485e
2 changed files with 12 additions and 7 deletions

View file

@ -1,5 +1,9 @@
2000-11-12 Mark Mitchell <mark@codesourcery.com>
* 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__.

View file

@ -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);