mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
ocl: define CL_SILENCE_DEPRECATION on MacOSX
This commit is contained in:
parent
5f88bbe3d5
commit
6686559c70
@ -96,6 +96,7 @@
|
||||
#define clWaitForEvents clWaitForEvents_
|
||||
|
||||
#if defined __APPLE__
|
||||
#define CL_SILENCE_DEPRECATION
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
@CL_REMAP_ORIGIN@
|
||||
|
||||
#if defined __APPLE__
|
||||
#define CL_SILENCE_DEPRECATION
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
|
@ -47,6 +47,7 @@
|
||||
|
||||
#if defined(HAVE_OPENCL_STATIC)
|
||||
#if defined __APPLE__
|
||||
#define CL_SILENCE_DEPRECATION
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
|
@ -19,6 +19,7 @@
|
||||
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS // eliminate build warning
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define CL_SILENCE_DEPRECATION
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
|
Loading…
Reference in New Issue
Block a user