File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11#include "detection/opencl/opencl.h"
22
3- #if defined(FF_HAVE_OPENCL ) || defined(__APPLE__ )
3+ #ifdef __APPLE__
4+ #include <AvailabilityMacros.h>
5+ #if (MAC_OS_X_VERSION_MIN_REQUIRED > 1050 ) && !defined(__ppc__ )
6+ #define MACOS_HAS_OPENCL
7+ #endif
8+ #endif
9+
10+ #if defined(FF_HAVE_OPENCL ) || defined(MACOS_HAS_OPENCL )
411
512#include "common/library.h"
613#include "common/parsing.h"
@@ -64,7 +71,7 @@ static const char* openCLHandleData(OpenCLData* data, FFOpenCLResult* result)
6471 return NULL ;
6572}
6673
67- #endif // defined(FF_HAVE_OPENCL) || defined(__APPLE__ )
74+ #endif // defined(FF_HAVE_OPENCL) || defined(MACOS_HAS_OPENCL )
6875
6976const char * ffDetectOpenCL (FFOpenCLResult * result )
7077{
@@ -84,7 +91,7 @@ const char* ffDetectOpenCL(FFOpenCLResult* result)
8491
8592 return openCLHandleData (& data , result );
8693
87- #elif defined(__APPLE__ ) // FF_HAVE_OPENCL
94+ #elif defined(MACOS_HAS_OPENCL ) // FF_HAVE_OPENCL
8895
8996 OpenCLData data ;
9097 data .ffclGetPlatformIDs = clGetPlatformIDs ;
You can’t perform that action at this time.
0 commit comments