Commit 5617f54a authored by Libretro-Admin's avatar Libretro-Admin
Browse files

MSVC ifdefs

parent 8749bd7d
......@@ -150,6 +150,10 @@ typedef struct {
#define TEST_FPS
#endif
#ifdef _MSC_VER
#define isnan(x) _isnan(x)
#endif
static float fmaxf_internal(float x, float y)
{
if (isnan(x))
......@@ -166,7 +170,11 @@ static double round_internal(double x)
{
double t;
#ifdef _MSC_VER
if (!_finite(x))
#else
if (!isfinite(x))
#endif
return x;
if (x >= 0.0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment