From 22599a28122e9e7698f09935d9f7a238f710ca41 Mon Sep 17 00:00:00 2001 From: jiakai Date: Mon, 21 Dec 2015 16:42:38 +0800 Subject: [PATCH] define g_haveOpenCL only when HAVE_OPENCL is set --- modules/core/src/ocl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 40fa91d984..6780d85e57 100644 --- a/modules/core/src/ocl.cpp +++ b/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)