ocl: fix CL_RUNTIME_EXPORT for master branch
This commit is contained in:
parent
f07769e9d8
commit
076eeffd4d
@ -2,13 +2,6 @@
|
|||||||
|
|
||||||
#if defined(HAVE_OPENCL) && (!defined(__APPLE__) || defined(IOS))
|
#if defined(HAVE_OPENCL) && (!defined(__APPLE__) || defined(IOS))
|
||||||
|
|
||||||
#if defined(BUILD_SHARED_LIBS) && (defined WIN32 || defined _WIN32 || defined WINCE)
|
|
||||||
#define CL_RUNTIME_EXPORT __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define CL_RUNTIME_EXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "opencv2/ocl/cl_runtime/cl_runtime.hpp"
|
#include "opencv2/ocl/cl_runtime/cl_runtime.hpp"
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
@ -91,7 +91,7 @@ namespace cv
|
|||||||
static bool useNaive(int method, int depth, Size size)
|
static bool useNaive(int method, int depth, Size size)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_CLAMDFFT
|
#ifdef HAVE_CLAMDFFT
|
||||||
if (method == TM_SQDIFF && (depth == CV_32F || !Context::getContext()->supportsFeature(Context::CL_DOUBLE)))
|
if (method == TM_SQDIFF && (depth == CV_32F || !Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE)))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,14 @@
|
|||||||
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
|
|
||||||
#if defined(BUILD_SHARED_LIBS) && (defined WIN32 || defined _WIN32 || defined WINCE)
|
#if defined(BUILD_SHARED_LIBS)
|
||||||
|
#if defined WIN32 || defined _WIN32 || defined WINCE
|
||||||
#define CL_RUNTIME_EXPORT __declspec(dllexport)
|
#define CL_RUNTIME_EXPORT __declspec(dllexport)
|
||||||
|
#elif defined __GNUC__ && __GNUC__ >= 4
|
||||||
|
#define CL_RUNTIME_EXPORT __attribute__ ((visibility ("default")))
|
||||||
|
#else
|
||||||
|
#define CL_RUNTIME_EXPORT
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define CL_RUNTIME_EXPORT
|
#define CL_RUNTIME_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user