1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 23:03:03 +04:00

ocl: workaround for OpenCL C++ bindings usage: CL/cl.hpp

This commit is contained in:
Alexander Alekhin
2013-10-03 17:05:00 +04:00
parent 8beb514ecf
commit 7f0680fc8b
7 changed files with 557 additions and 0 deletions
+9
View File
@@ -50,6 +50,15 @@
#include <fstream>
#include "cl_programcache.hpp"
// workaround for OpenCL C++ bindings
#if defined(HAVE_OPENCL12)
#include "opencv2/ocl/cl_runtime/cl_runtime_opencl12_wrappers.hpp"
#elif defined(HAVE_OPENCL11)
#include "opencv2/ocl/cl_runtime/cl_runtime_opencl11_wrappers.hpp"
#else
#error Invalid OpenCL configuration
#endif
#if defined _MSC_VER && _MSC_VER >= 1200
# pragma warning( disable: 4100 4244 4267 4510 4512 4610)
#endif