]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Fix OpenSolaris softfloat warnings
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 13 Apr 2009 16:27:08 +0000 (16:27 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 13 Apr 2009 16:27:08 +0000 (16:27 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7102 c046a42c-6fe2-441c-8c8c-71466251a162

configure
fpu/softfloat-native.c
fpu/softfloat-native.h

index ed6e582a396cea37b9e6d876aa077b3d6bf7b4e5..2b5ae78e963b6ca9168e21ea657e5844d5344e06 100755 (executable)
--- a/configure
+++ b/configure
@@ -306,6 +306,7 @@ SunOS)
         audio_drv_list="oss"
     fi
     audio_possible_drivers="oss sdl"
+    OS_CFLAGS=-std=gnu99
 ;;
 AIX)
 aix="yes"
index 99471b34cddd753d9814adf3552f2dc2f487b8b5..2af07a3f8f987df26067cffef1359b7cd7437da6 100644 (file)
@@ -2,6 +2,9 @@
    context is supported */
 #include "softfloat.h"
 #include <math.h>
+#if defined(HOST_SOLARIS)
+#include <fenv.h>
+#endif
 
 void set_float_rounding_mode(int val STATUS_PARAM)
 {
index 6b3a20e14a8b6d7425cfda7af5e288b62c0893b8..a28c76947236b4f8758731441339e2ca215e328f 100644 (file)
@@ -20,7 +20,7 @@
  *   are defined in <iso/math_c99.h> with a compiler directive
  */
 #if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \
-                                                        && (__GNUC__ <= 4))) \
+                                                        && (__GNUC__ < 4))) \
     || (defined(__OpenBSD__) && (OpenBSD < 200811))
 /*
  * C99 7.12.3 classification macros