diff --git a/object-lifetime/object_lifetime.cpp b/object-lifetime/object_lifetime.cpp index 5167d485..5f47ac8a 100644 --- a/object-lifetime/object_lifetime.cpp +++ b/object-lifetime/object_lifetime.cpp @@ -787,6 +787,8 @@ static void* get_parent(cl_kernel kernel) { return NULL; } +extern "C" { + /* OpenCL 1.0 */ static CL_API_ENTRY cl_int CL_API_CALL clGetPlatformIDs_wrap( cl_uint num_entries, @@ -3684,6 +3686,8 @@ static CL_API_ENTRY cl_int CL_API_CALL clSetContextDestructorCallback_wrap( user_data); } +} // extern "C" + static void _init_dispatch(void) { dispatch.clGetPlatformIDs = &clGetPlatformIDs_wrap; dispatch.clGetPlatformInfo = &clGetPlatformInfo_wrap;