From 891c83ff35b29e7d4d79d52eb9ff075edadfc51a Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Mon, 25 Jul 2016 08:27:52 +0900 Subject: [PATCH] fix build error * NAN is not defined on some platform * follow the comment on PR --- modules/core/test/test_arithm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/core/test/test_arithm.cpp b/modules/core/test/test_arithm.cpp index 68aa09b0ed..3264710807 100644 --- a/modules/core/test/test_arithm.cpp +++ b/modules/core/test/test_arithm.cpp @@ -1,5 +1,9 @@ #include "test_precomp.hpp" #include +#ifndef NAN +#include // numeric_limits::quiet_NaN() +#define NAN std::numeric_limits::quiet_NaN() +#endif using namespace cv; using namespace std;