mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
fix build error
* NAN is not defined on some platform * follow the comment on PR
This commit is contained in:
parent
1001b05def
commit
891c83ff35
@ -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…
Reference in New Issue
Block a user