diff options
author | Marc Glisse <marc.glisse@normalesup.org> | 2011-08-18 14:59:47 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-08-18 14:59:47 +0000 |
commit | a1998fab44f12c5d4553e62d33b974f7ec189477 (patch) | |
tree | e1ac4cec20e9f3be646050a685354d96a5798a90 /libstdc++-v3/include/tr1 | |
parent | 9181a6e5b0beb4486bcd8c5d5b53d6e10cfc89ad (diff) | |
download | gcc-a1998fab44f12c5d4553e62d33b974f7ec189477.zip gcc-a1998fab44f12c5d4553e62d33b974f7ec189477.tar.gz gcc-a1998fab44f12c5d4553e62d33b974f7ec189477.tar.bz2 |
Use Solaris prototypes if possible (PR libstdc++-v3/1773)
Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
From-SVN: r177866
Diffstat (limited to 'libstdc++-v3/include/tr1')
-rw-r--r-- | libstdc++-v3/include/tr1/cmath | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/include/tr1/cmath b/libstdc++-v3/include/tr1/cmath index 9ada637..d104572 100644 --- a/libstdc++-v3/include/tr1/cmath +++ b/libstdc++-v3/include/tr1/cmath @@ -569,6 +569,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // mode have a different return type. using ::fabs; +#ifndef __CORRECT_ISO_CPP_MATH_H_PROTO1 inline float fabs(float __x) { return __builtin_fabsf(__x); } @@ -582,6 +583,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION double>::__type fabs(_Tp __x) { return __builtin_fabs(__x); } +#endif inline float fdim(float __x, float __y) |