fix build error

* NAN is not defined on some platform
  * follow the comment on PR
pull/6980/head
Tomoaki Teshima 9 years ago
parent 1001b05def
commit 891c83ff35
  1. 4
      modules/core/test/test_arithm.cpp

@ -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…
Cancel
Save