diff --git a/qemu/include/qemu/compiler.h b/qemu/include/qemu/compiler.h index e74e7119..20909ea0 100644 --- a/qemu/include/qemu/compiler.h +++ b/qemu/include/qemu/compiler.h @@ -17,7 +17,13 @@ #if _MSC_VER < MSC_VER_VS2013 #define isinf(x) (!_finite(x)) +#if defined(_WIN64) +#define isnan _isnanf +#else +#define isnan _isnan #endif +#endif + static double rint( double x ) { diff --git a/qemu/include/qemu/host-utils.h b/qemu/include/qemu/host-utils.h index d8707451..f6157cfd 100644 --- a/qemu/include/qemu/host-utils.h +++ b/qemu/include/qemu/host-utils.h @@ -379,13 +379,4 @@ static inline int ctpop64(uint64_t val) # error Unknown sizeof long #endif -#ifdef _MSC_VER -#include -#if defined(_WIN64) -#define isnan _isnanf -#else -#define isnan _isnan -#endif -#endif - #endif