projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1001b05
)
fix build error
author
Tomoaki Teshima
<teshima@exvision.co.jp>
Sun, 24 Jul 2016 23:27:52 +0000
(08:27 +0900)
committer
Tomoaki 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
patch
|
blob
|
history
diff --git
a/modules/core/test/test_arithm.cpp
b/modules/core/test/test_arithm.cpp
index
68aa09b
..
3264710
100644
(file)
--- a/
modules/core/test/test_arithm.cpp
+++ b/
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;