From: blueswir1 Date: Mon, 13 Apr 2009 16:27:08 +0000 (+0000) Subject: Fix OpenSolaris softfloat warnings X-Git-Tag: 0.10.0-0sb10~1532 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=14d483eca0eb5f8b58b4b0317b734d485e4ca181;p=qemu Fix OpenSolaris softfloat warnings git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7102 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/configure b/configure index ed6e582..2b5ae78 100755 --- 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" diff --git a/fpu/softfloat-native.c b/fpu/softfloat-native.c index 99471b3..2af07a3 100644 --- a/fpu/softfloat-native.c +++ b/fpu/softfloat-native.c @@ -2,6 +2,9 @@ context is supported */ #include "softfloat.h" #include +#if defined(HOST_SOLARIS) +#include +#endif void set_float_rounding_mode(int val STATUS_PARAM) { diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h index 6b3a20e..a28c769 100644 --- a/fpu/softfloat-native.h +++ b/fpu/softfloat-native.h @@ -20,7 +20,7 @@ * are defined in 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