fix build error

* NAN is not defined on some platform
  * follow the comment on PR
This commit is contained in:
Tomoaki Teshima 2016-07-25 08:27:52 +09:00
parent 1001b05def
commit 891c83ff35

View File

@ -1,5 +1,9 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
#include <cmath> #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 cv;
using namespace std; using namespace std;