Commit 1a65fc26 by baldurk

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

parent 033d3ef2
...@@ -23,6 +23,19 @@ ...@@ -23,6 +23,19 @@
#include <limits> #include <limits>
#include <sstream> #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" #include "bitutils.h"
namespace spvutils { namespace spvutils {
......
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