Add std::isnan and std::isinf wrappers for VS2010 that doesn't have them

This commit is contained in:
baldurk 2016-10-13 19:28:54 +02:00
parent 033d3ef22c
commit 1a65fc269c

View File

@ -23,6 +23,19 @@
#include <limits>
#include <sstream>
#if defined(_MSC_VER) && _MSC_VER < 1700
namespace std {
bool isnan(double f)
{
return ::_isnan(f) != 0;
}
bool isinf(double f)
{
return ::_finite(f) == 0;
}
}
#endif
#include "bitutils.h"
namespace spvutils {