fix the warning on Linux when OpenCL 1.2 not supported
authoryao <bitwangyaoyao@gmail.com>
Fri, 22 Feb 2013 10:33:16 +0000 (18:33 +0800)
committeryao <bitwangyaoyao@gmail.com>
Fri, 22 Feb 2013 10:33:16 +0000 (18:33 +0800)
modules/ocl/src/mcwutil.cpp

index 57ead2c..dfbf7b1 100644 (file)
@@ -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;