Jacek Caban : opencl: Fix compilation on MSVC targets.

Alexandre Julliard julliard at winehq.org
Thu Sep 23 15:35:06 CDT 2021


Module: wine
Branch: master
Commit: a91d6e9eae71a0ed0ddeac3d571704fd3e47b3c5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a91d6e9eae71a0ed0ddeac3d571704fd3e47b3c5

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Sep 23 16:26:24 2021 +0200

opencl: Fix compilation on MSVC targets.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list