opencl: We still use the deprecated OpenCL 1.1 APIs.

Francois Gouget fgouget at free.fr
Thu Jun 28 09:22:38 CDT 2012


---

I have opencl-headers 1.2-2012.04.18a-1 installed and its cl.h header 
won't provide the prototypes for the functions we use if 
CL_USE_DEPRECATED_OPENCL_1_1_APIS is not defined, which results in a 
lot of 'implicit function declaration' warnings.

 dlls/opencl/opencl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/opencl/opencl.c b/dlls/opencl/opencl.c
index 9b466ec..f3e6e79 100644
--- a/dlls/opencl/opencl.c
+++ b/dlls/opencl/opencl.c
@@ -31,6 +31,7 @@
 WINE_DEFAULT_DEBUG_CHANNEL(opencl);
 
 #if defined(HAVE_CL_CL_H)
+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
 #include <CL/cl.h>
 #elif defined(HAVE_OPENCL_OPENCL_H)
 #include <OpenCL/opencl.h>
-- 
1.7.10




More information about the wine-patches mailing list