mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Simplify OpenCL compile-time detection on OS X.
Turn wiiuse io_osx.m into Objective-C++. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6398 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -26,10 +26,17 @@
|
||||
#define HAVE_OPENCL 1
|
||||
#endif
|
||||
|
||||
// We detect the presence of the 10.6 SDK, which has the OpenCL headers,
|
||||
// by looking for the new blocks feature in the 10.6 version of gcc.
|
||||
// This allows us to have the 10.5 SDK first in the search path.
|
||||
#if defined __APPLE__ && defined __BLOCKS__
|
||||
#define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER WEAK_IMPORT_ATTRIBUTE
|
||||
#define HAVE_OPENCL 1
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
|
Reference in New Issue
Block a user