define g_haveOpenCL only when HAVE_OPENCL is set

This commit is contained in:
jiakai 2015-12-21 16:42:38 +08:00
parent 387214a3c5
commit 22599a2812

View File

@ -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)