]> git.proxmox.com Git - qemu.git/commitdiff
Silence softfloat warnings on OpenSolaris
authorAndreas Färber <afaerber@opensolaris.org>
Sat, 12 Dec 2009 19:10:56 +0000 (20:10 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Dec 2009 14:28:17 +0000 (14:28 +0000)
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>
fpu/softfloat-native.h

index 35670c80d137e18241b5aac0f758eb08574facbb..fe737b32b913009226007fdcbeb5c4ae769a2385 100644 (file)
@@ -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