diff --git a/modules/core/test/test_arithm.cpp b/modules/core/test/test_arithm.cpp index 68aa09b0e..326471080 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;