diff --git a/dlls/opencl/make_opencl b/dlls/opencl/make_opencl
index 09eba09914eeced2f34ee85e1f21f7187fae4752..270f9a3a50210402333aa33af183d449e48f8684 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 6d6dc0d870c8f3a9928e10787bdc0e5be574a4b1..7acd4a77f7684a65cfd2b6b9a55927cee9e24fe3 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;