ocl: force to use Khronos OpenCL headers

This commit is contained in:
Alexander Alekhin
2013-10-11 19:30:47 +04:00
parent 9d380ecc08
commit 6344da9ac3
11 changed files with 45 additions and 99 deletions

View File

@@ -1,13 +1,6 @@
#include "precomp.hpp"
#if defined(HAVE_OPENCL) && (!defined(__APPLE__) || defined(IOS))
#if defined(BUILD_SHARED_LIBS) && (defined WIN32 || defined _WIN32 || defined WINCE)
#define CL_RUNTIME_EXPORT __declspec(dllexport)
#else
#define CL_RUNTIME_EXPORT
#endif
#if defined(HAVE_OPENCL) && !defined(HAVE_OPENCL_STATIC)
#include "opencv2/ocl/cl_runtime/cl_runtime.hpp"
@@ -94,12 +87,6 @@ static void* opencl_check_fn(int ID)
return func;
}
#if defined(HAVE_OPENCL12)
#include "cl_runtime_opencl12_impl.hpp"
#elif defined(HAVE_OPENCL11)
#include "cl_runtime_opencl11_impl.hpp"
#else
#error Invalid OpenCL configuration
#endif
#include "cl_runtime_opencl_impl.hpp"
#endif