From 917c79a7d4f5ca5d85d7d4e8cac9bc5f5f35002a Mon Sep 17 00:00:00 2001 From: Ioannis Tsakpinis Date: Mon, 27 Sep 2010 00:13:31 +0000 Subject: [PATCH] Apple's cl_platform.h is missing CL_CALLBACK. --- src/native/common/extcl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/native/common/extcl.h b/src/native/common/extcl.h index df1aeffa..00ba98ca 100644 --- a/src/native/common/extcl.h +++ b/src/native/common/extcl.h @@ -55,8 +55,12 @@ typedef GLsync cl_GLsync; // -----------------[ 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) -#if defined(_WIN32) +#if defined(_WIN32) || defined(_WIN64) #define CL_USER_FUNC_CALLBACK __cdecl #else #define CL_USER_FUNC_CALLBACK CL_CALLBACK