ftello64 -> ftell and fopen64 -> fopen (to make Mac OSX happy)

disable some warning (no idea why weak_link is there)
This commit is contained in:
Erwin Coumans
2014-02-04 14:52:57 -08:00
parent 2a87706114
commit db188990fc
2 changed files with 17 additions and 5 deletions

View File

@@ -72,8 +72,9 @@ extern "C" {
#define CL_API_CALL
#define CL_CALLBACK
#endif
//disabled the APPLE thing, don't know why it is there, is just causes tons of warnings
#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