Jacek Caban : widl: Use DECLSPEC_ALIGN in MSVC compatible way.
Alexandre Julliard
julliard at winehq.org
Fri Aug 7 10:42:29 CDT 2020
Module: wine
Branch: stable
Commit: 5d414891cdf18bc1810ad1a3e3a1b94c7ea116cc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5d414891cdf18bc1810ad1a3e3a1b94c7ea116cc
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Apr 20 20:19:59 2020 +0200
widl: Use DECLSPEC_ALIGN in MSVC compatible way.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 4fd8190ef1ba37c22904ccb499aea32cc6c0c0a3)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
tools/widl/typegen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 9b8aa1a322..a1db88a7c0 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -4816,7 +4816,7 @@ void write_func_param_struct( FILE *file, const type_t *iface, const type_t *fun
if (align >= pointer_size)
fprintf( file, "%s;\n", arg->name );
else
- fprintf( file, "%s DECLSPEC_ALIGN(%u);\n", arg->name, pointer_size );
+ fprintf( file, "DECLSPEC_ALIGN(%u) %s;\n", pointer_size, arg->name );
}
if (add_retval && !is_void( retval->declspec.type ))
{
More information about the wine-cvs
mailing list