Commit 22599a28 authored by jiakai's avatar jiakai

define g_haveOpenCL only when HAVE_OPENCL is set

parent 387214a3
......@@ -684,10 +684,10 @@ typedef struct _cl_buffer_region {
#define CL_CALLBACK CV_STDCALL
static volatile bool g_haveOpenCL = false;
#ifdef HAVE_OPENCL
static const char* oclFuncToCheck = "clEnqueueReadBufferRect";
static volatile bool g_haveOpenCL = false;
#endif
#if defined(__APPLE__) && defined(HAVE_OPENCL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment