Add std::isnan and std::isinf wrappers for VS2010 that doesn't have them
This commit is contained in:
parent
033d3ef22c
commit
1a65fc269c
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user