aboutsummaryrefslogtreecommitdiff
path: root/fpu
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@opensolaris.org>2009-12-12 20:10:56 +0100
committerBlue Swirl <blauwirbel@gmail.com>2009-12-13 14:28:17 +0000
commitbe45f06826e4bf232625b9d78b72df0c8d0a4b79 (patch)
tree000198da6f46c240e46c562caf57b14268d27597 /fpu
parentee7139c33b4ff68a9d9545135dde1479f4f2f902 (diff)
Silence softfloat warnings on OpenSolaris
Don't define C99 math functions on OpenSolaris (Solaris 11), which still ships GCC 3.4.3. This fixes redefinition warnings. Spotted by Palle Lyckegaard. Signed-off-by: Andreas Färber <afaerber@opensolaris.org> Cc: Palle Lyckegaard <palle@lyckegaard.dk> Cc: Ben Taylor <bentaylor.solx86@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat-native.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h
index 35670c80d1..fe737b32b9 100644
--- a/fpu/softfloat-native.h
+++ b/fpu/softfloat-native.h
@@ -22,7 +22,7 @@
*/
#if defined(CONFIG_SOLARIS) && \
((CONFIG_SOLARIS_VERSION <= 9 ) || \
- ((CONFIG_SOLARIS_VERSION >= 10) && (__GNUC__ < 4))) \
+ ((CONFIG_SOLARIS_VERSION == 10) && (__GNUC__ < 4))) \
|| (defined(__OpenBSD__) && (OpenBSD < 200811))
/*
* C99 7.12.3 classification macros