define g_haveOpenCL only when HAVE_OPENCL is set

pull/5843/head
jiakai 9 years ago
parent 387214a3c5
commit 22599a2812
  1. 2
      modules/core/src/ocl.cpp

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

Loading…
Cancel
Save