From 13c69ae840083105880cac443024b445bc0eb3a9 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 14 Apr 2020 16:55:44 +0200 Subject: [PATCH] winapi: Allow DECLSPEC_ALIGN() in typedef declarations. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- tools/winapi/winapi_parser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winapi/winapi_parser.pm b/tools/winapi/winapi_parser.pm index eee7aa4e665..da0a929bf17 100644 --- a/tools/winapi/winapi_parser.pm +++ b/tools/winapi/winapi_parser.pm @@ -556,7 +556,7 @@ sub parse_c_file($$) { } elsif(/(DEFAULT|DECLARE)_DEBUG_CHANNEL\s*\((\S+)\)/s) { $_ = $'; $again = 1; push @$debug_channels, $1; - } elsif(/typedef\s+(enum|interface|struct|union)(?:\s+(\w+))?\s*\{/s) { + } elsif(/typedef\s+(enum|interface|struct|union)(?:\s+DECLSPEC_ALIGN\(\d+\))?(?:\s+(\w+))?\s*\{/s) { $_ = $'; $again = 1; $level++; my $type = $1;