Apple's cl_platform.h is missing CL_CALLBACK.

This commit is contained in:
Ioannis Tsakpinis 2010-09-27 00:13:31 +00:00
parent a86fd4b14d
commit 917c79a7d4
1 changed files with 5 additions and 1 deletions

View File

@ -55,8 +55,12 @@ typedef GLsync cl_GLsync;
// -----------------[ Callback function typedefs ]----------------- // -----------------[ Callback function typedefs ]-----------------
#ifndef CL_CALLBACK
#define CL_CALLBACK
#endif
// TODO: This is a bug in current CL implementations (AMD's only?), remove when fixed. (used for cl_native_kernel_func) // TODO: This is a bug in current CL implementations (AMD's only?), remove when fixed. (used for cl_native_kernel_func)
#if defined(_WIN32) #if defined(_WIN32) || defined(_WIN64)
#define CL_USER_FUNC_CALLBACK __cdecl #define CL_USER_FUNC_CALLBACK __cdecl
#else #else
#define CL_USER_FUNC_CALLBACK CL_CALLBACK #define CL_USER_FUNC_CALLBACK CL_CALLBACK