Merge pull request #6980 from tomoaki0705:fixNanUndeclared2

This commit is contained in:
Alexander Alekhin 2016-07-25 08:09:18 +00:00
commit 23fd32056e

View File

@ -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;