Merge pull request #14155 from alalek:fix_macos_ocl_warnings_3.4

pull/14161/head^2
Alexander Alekhin 6 years ago
commit 55366caecd
  1. 1
      modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
  2. 1
      modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in
  3. 1
      modules/core/src/opencl/runtime/opencl_core.cpp
  4. 1
      samples/opencl/opencl-opencv-interop.cpp

@ -96,6 +96,7 @@
#define clWaitForEvents clWaitForEvents_ #define clWaitForEvents clWaitForEvents_
#if defined __APPLE__ #if defined __APPLE__
#define CL_SILENCE_DEPRECATION
#include <OpenCL/cl.h> #include <OpenCL/cl.h>
#else #else
#include <CL/cl.h> #include <CL/cl.h>

@ -5,6 +5,7 @@
@CL_REMAP_ORIGIN@ @CL_REMAP_ORIGIN@
#if defined __APPLE__ #if defined __APPLE__
#define CL_SILENCE_DEPRECATION
#include <OpenCL/cl.h> #include <OpenCL/cl.h>
#else #else
#include <CL/cl.h> #include <CL/cl.h>

@ -47,6 +47,7 @@
#if defined(HAVE_OPENCL_STATIC) #if defined(HAVE_OPENCL_STATIC)
#if defined __APPLE__ #if defined __APPLE__
#define CL_SILENCE_DEPRECATION
#include <OpenCL/cl.h> #include <OpenCL/cl.h>
#else #else
#include <CL/cl.h> #include <CL/cl.h>

@ -19,6 +19,7 @@
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS // eliminate build warning #define CL_USE_DEPRECATED_OPENCL_2_0_APIS // eliminate build warning
#ifdef __APPLE__ #ifdef __APPLE__
#define CL_SILENCE_DEPRECATION
#include <OpenCL/cl.h> #include <OpenCL/cl.h>
#else #else
#include <CL/cl.h> #include <CL/cl.h>

Loading…
Cancel
Save