From a91d6e9eae71a0ed0ddeac3d571704fd3e47b3c5 Mon Sep 17 00:00:00 2001
From: Jacek Caban <jacek@codeweavers.com>
Date: Thu, 23 Sep 2021 16:26:24 +0200
Subject: [PATCH] opencl: Fix compilation on MSVC targets.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
 dlls/opencl/make_opencl    | 6 +++---
 dlls/opencl/opencl_types.h | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/opencl/make_opencl b/dlls/opencl/make_opencl
index 09eba09914e..270f9a3a502 100755
--- a/dlls/opencl/make_opencl
+++ b/dlls/opencl/make_opencl
@@ -513,9 +513,9 @@ open(TYPES, ">$types_file") or die "cannot create $types_file";
 print TYPES <<END
 /* Automatically generated from OpenCL registry files; DO NOT EDIT! */
 
-typedef int32_t cl_int DECLSPEC_ALIGN(4);
-typedef uint32_t cl_uint DECLSPEC_ALIGN(4);
-typedef uint64_t cl_ulong DECLSPEC_ALIGN(8);
+typedef int32_t DECLSPEC_ALIGN(4) cl_int;
+typedef uint32_t DECLSPEC_ALIGN(4) cl_uint;
+typedef uint64_t DECLSPEC_ALIGN(8) cl_ulong;
 
 END
 ;
diff --git a/dlls/opencl/opencl_types.h b/dlls/opencl/opencl_types.h
index 6d6dc0d870c..7acd4a77f76 100644
--- a/dlls/opencl/opencl_types.h
+++ b/dlls/opencl/opencl_types.h
@@ -1,8 +1,8 @@
 /* Automatically generated from OpenCL registry files; DO NOT EDIT! */
 
-typedef int32_t cl_int DECLSPEC_ALIGN(4);
-typedef uint32_t cl_uint DECLSPEC_ALIGN(4);
-typedef uint64_t cl_ulong DECLSPEC_ALIGN(8);
+typedef int32_t DECLSPEC_ALIGN(4) cl_int;
+typedef uint32_t DECLSPEC_ALIGN(4) cl_uint;
+typedef uint64_t DECLSPEC_ALIGN(8) cl_ulong;
 
 typedef struct _cl_platform_id *      cl_platform_id;
 typedef struct _cl_device_id *        cl_device_id;
-- 
GitLab