fixed compilation issue for Windows regarding the use of isnan function

This commit is contained in:
favoritas37 2016-09-27 02:59:44 +03:00
parent 52262cb0d2
commit f30e66917f

View File

@ -36,11 +36,11 @@
#if defined(_WIN32) || defined(_WIN64)
#include <float.h>
#include <math.h>
#include <cmath>
namespace zxing {
inline bool isnan_z(float v) {return _isnan(v) != 0;}
inline bool isnan_z(double v) {return _isnan(v) != 0;}
inline bool isnan_z(float v) {return std::isnan(v) != 0;}
inline bool isnan_z(double v) {return std::isnan(v) != 0;}
inline float nan() {return std::numeric_limits<float>::quiet_NaN();}
}