fix build error
* NAN is not defined on some platform * follow the comment on PR
This commit is contained in:
parent
1001b05def
commit
891c83ff35
@ -1,5 +1,9 @@
|
||||
#include "test_precomp.hpp"
|
||||
#include <cmath>
|
||||
#ifndef NAN
|
||||
#include <limits> // numeric_limits<T>::quiet_NaN()
|
||||
#define NAN std::numeric_limits<float>::quiet_NaN()
|
||||
#endif
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
|
Loading…
Reference in New Issue
Block a user