[PATCH] winapi: Allow DECLSPEC_ALIGN() in typedef declarations.

Francois Gouget fgouget at free.fr
Tue Apr 14 09:55:44 CDT 2020


Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 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 941fdfe5a0b..f9310b9c7ec 100644
--- a/tools/winapi/winapi_parser.pm
+++ b/tools/winapi/winapi_parser.pm
@@ -578,7 +578,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;
-- 
2.20.1




More information about the wine-devel mailing list