fix build error
authorTomoaki Teshima <teshima@exvision.co.jp>
Sun, 24 Jul 2016 23:27:52 +0000 (08:27 +0900)
committerTomoaki Teshima <teshima@exvision.co.jp>
Mon, 25 Jul 2016 06:42:09 +0000 (15:42 +0900)
  * NAN is not defined on some platform
  * follow the comment on PR

modules/core/test/test_arithm.cpp

index 68aa09b..3264710 100644 (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;