From 147a006a50631c924bccd247ee19d5be1c9aad80 Mon Sep 17 00:00:00 2001 From: DFYX Date: Sun, 4 Dec 2011 19:14:40 +0100 Subject: [PATCH] Add CL_CALLBACK to fix building against AMD APP SDK on Windows 7 --- src/opencl/qclcontext.cpp | 2 +- src/openclgl/qclcontextgl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opencl/qclcontext.cpp b/src/opencl/qclcontext.cpp index 03c56e6..8b81752 100644 --- a/src/opencl/qclcontext.cpp +++ b/src/opencl/qclcontext.cpp @@ -115,7 +115,7 @@ bool QCLContext::isCreated() const extern "C" { -static void qt_cl_context_notify(const char *errinfo, +static void CL_CALLBACK qt_cl_context_notify(const char *errinfo, const void *private_info, size_t cb, void *user_data) diff --git a/src/openclgl/qclcontextgl.cpp b/src/openclgl/qclcontextgl.cpp index 53bcbb5..ba46083 100644 --- a/src/openclgl/qclcontextgl.cpp +++ b/src/openclgl/qclcontextgl.cpp @@ -92,7 +92,7 @@ QCLContextGL::~QCLContextGL() extern "C" { -static void qt_clgl_context_notify(const char *errinfo, +static void CL_CALLBACK qt_clgl_context_notify(const char *errinfo, const void *private_info, size_t cb, void *user_data) -- 1.7.5.1