mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-13 03:16:40 +00:00
fixed compilation issue for Windows regarding the use of isnan function
This commit is contained in:
parent
52262cb0d2
commit
f30e66917f
@ -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();}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user