diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index 0af9b1f716..1d9f992d94 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -441,8 +441,13 @@ void apple_gfx_ctx_swap_buffers() gfx_ctx_proc_t apple_gfx_ctx_get_proc_address(const char *symbol_name) { +#ifdef MAC_OS_X_VERSION_10_7 return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID), - (__bridge CFStringRef)(@(symbol_name))); + (__bridge CFStringRef)@(symbol_name)); +#else + return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID), + (CFStringRef)symbol_name); +#endif } #ifdef IOS