mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-04-01 23:07:03 +00:00
isnan() fix for msvc2013 onwards
This commit is contained in:
parent
21c0580d63
commit
03dcce40b2
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -379,13 +379,4 @@ static inline int ctpop64(uint64_t val)
|
|||
# error Unknown sizeof long
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <float.h>
|
||||
#if defined(_WIN64)
|
||||
#define isnan _isnanf
|
||||
#else
|
||||
#define isnan _isnan
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue