aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/tr1
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@normalesup.org>2011-08-18 14:59:47 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-08-18 14:59:47 +0000
commita1998fab44f12c5d4553e62d33b974f7ec189477 (patch)
treee1ac4cec20e9f3be646050a685354d96a5798a90 /libstdc++-v3/include/tr1
parent9181a6e5b0beb4486bcd8c5d5b53d6e10cfc89ad (diff)
downloadgcc-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/cmath2
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)