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:
2e3f4fd
)
fix the warning on Linux when OpenCL 1.2 not supported
author
yao
<bitwangyaoyao@gmail.com>
Fri, 22 Feb 2013 10:33:16 +0000
(18:33 +0800)
committer
yao
<bitwangyaoyao@gmail.com>
Fri, 22 Feb 2013 10:33:16 +0000
(18:33 +0800)
modules/ocl/src/mcwutil.cpp
patch
|
blob
|
history
diff --git
a/modules/ocl/src/mcwutil.cpp
b/modules/ocl/src/mcwutil.cpp
index
57ead2c
..
dfbf7b1
100644
(file)
--- a/
modules/ocl/src/mcwutil.cpp
+++ b/
modules/ocl/src/mcwutil.cpp
@@
-46,6
+46,9
@@
#include "mcwutil.hpp"
#if defined (HAVE_OPENCL)
+#ifndef CL_VERSION_1_2
+#define CL_VERSION_1_2 0
+#endif
using namespace std;