opencl: Define CL_TARGET_OPENCL_VERSION 220 to fix a header warning

System Internals / WINE - Rémi Bernon [codeweavers.com] - 13 November 2019 21:36 EST

This is going to be the value used anyway, as we didn't specify it.

###

diff --git a/dlls/opencl/opencl.c b/dlls/opencl/opencl.c
index 2d145bf25c..7e680ba057 100644
--- a/dlls/opencl/opencl.c
+++ b/dlls/opencl/opencl.c
@@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(opencl);
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
+#define CL_TARGET_OPENCL_VERSION 220
#include
#elif defined(HAVE_OPENCL_OPENCL_H)
#include

97e47fe066 opencl: Define CL_TARGET_OPENCL_VERSION 220 to fix a header warning.
dlls/opencl/opencl.c | 1 +
1 file changed, 1 insertion(+)

Upstream: source.winehq.org


  • Share