mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-04 00:26:09 +00: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:
parent
a913295d70
commit
02edf66b49
15 changed files with 32 additions and 95 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue