fix Mac OSX build (and remove 'weak link' warning)

This commit is contained in:
Erwin Coumans
2014-02-04 14:05:21 -08:00
parent 94db38358c
commit 146bbefc03
4 changed files with 7 additions and 35 deletions

View File

@@ -73,7 +73,7 @@ extern "C" {
#define CL_CALLBACK
#endif
#ifdef __APPLE__
#ifdef __APPLE1__
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
#define CL_API_SUFFIX__VERSION_1_0 AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
#define CL_EXT_SUFFIX__VERSION_1_0 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER