Fix OpenSolaris softfloat warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7102 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
acda94b189
commit
14d483eca0
1
configure
vendored
1
configure
vendored
@ -306,6 +306,7 @@ SunOS)
|
|||||||
audio_drv_list="oss"
|
audio_drv_list="oss"
|
||||||
fi
|
fi
|
||||||
audio_possible_drivers="oss sdl"
|
audio_possible_drivers="oss sdl"
|
||||||
|
OS_CFLAGS=-std=gnu99
|
||||||
;;
|
;;
|
||||||
AIX)
|
AIX)
|
||||||
aix="yes"
|
aix="yes"
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
context is supported */
|
context is supported */
|
||||||
#include "softfloat.h"
|
#include "softfloat.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#if defined(HOST_SOLARIS)
|
||||||
|
#include <fenv.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
void set_float_rounding_mode(int val STATUS_PARAM)
|
void set_float_rounding_mode(int val STATUS_PARAM)
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
* are defined in <iso/math_c99.h> with a compiler directive
|
* are defined in <iso/math_c99.h> with a compiler directive
|
||||||
*/
|
*/
|
||||||
#if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \
|
#if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \
|
||||||
&& (__GNUC__ <= 4))) \
|
&& (__GNUC__ < 4))) \
|
||||||
|| (defined(__OpenBSD__) && (OpenBSD < 200811))
|
|| (defined(__OpenBSD__) && (OpenBSD < 200811))
|
||||||
/*
|
/*
|
||||||
* C99 7.12.3 classification macros
|
* C99 7.12.3 classification macros
|
||||||
|
Loading…
Reference in New Issue
Block a user