summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/tr1
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-18 14:59:47 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-18 14:59:47 +0000
commit2f9ed2d5c876d2f864bbbab8d84cdea643e85ccc (patch)
treee1ac4cec20e9f3be646050a685354d96a5798a90 /libstdc++-v3/include/tr1
parent4682ca167223685b40b5c5f7700f02b7d6597bea (diff)
downloadppe42-gcc-2f9ed2d5c876d2f864bbbab8d84cdea643e85ccc.tar.gz
ppe42-gcc-2f9ed2d5c876d2f864bbbab8d84cdea643e85ccc.zip
Use Solaris prototypes if possible (PR libstdc++-v3/1773)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177866 138bc75d-0d04-0410-961f-82ee72b054a4
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 9ada6379a77..d104572088f 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)
OpenPOWER on IntegriCloud