ocl: fix mac and superres test

This commit is contained in:
Alexander Alekhin
2014-07-01 20:02:02 +04:00
committed by Ilya Lavrenov
parent 43e4946cca
commit b1ac35e14a
2 changed files with 21 additions and 0 deletions

View File

@@ -6,6 +6,17 @@
#if defined(HAVE_OPENCL_STATIC)
#if defined __APPLE__
// APPLE ignores CL_USE_DEPRECATED_OPENCL_1_1_APIS so use this hack:
#include <OpenCL/cl_platform.h>
#ifdef CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
#undef CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
#define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
#endif
#ifdef CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED
#undef CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED
#define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED
#endif
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>