about summary refs log tree commit diff stats
path: root/wrapperhelper/src/parse.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-09-02 18:02:42 +0800
committerGitHub <noreply@github.com>2025-09-02 12:02:42 +0200
commit28d07f9bf03c76013db8d15477e8d1f46d1b930d (patch)
tree4f092e065b9dea4eacee63fd3f384b5244963fa2 /wrapperhelper/src/parse.c
parent994ce41adc2efb811d890dfd28c1d37841630b01 (diff)
downloadbox64-28d07f9bf03c76013db8d15477e8d1f46d1b930d.tar.gz
box64-28d07f9bf03c76013db8d15477e8d1f46d1b930d.zip
[WRAPPERHELPER] Added legacy __attribute support (#2996)
Diffstat (limited to 'wrapperhelper/src/parse.c')
-rw-r--r--wrapperhelper/src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrapperhelper/src/parse.c b/wrapperhelper/src/parse.c
index eba462bf..7d55eaf5 100644
--- a/wrapperhelper/src/parse.c
+++ b/wrapperhelper/src/parse.c
@@ -2129,7 +2129,7 @@ parse_cur_token_decl:
 			}
 			char *ident = string_steal(tok->tokv.str);
 			*tok = proc_next_token(prep);
-			while ((tok->tokt == PTOK_IDENT) && !strcmp(string_content(tok->tokv.str), "__attribute__")) {
+			while ((tok->tokt == PTOK_IDENT) && (!strcmp(string_content(tok->tokv.str), "__attribute__") || !strcmp(string_content(tok->tokv.str), "__attribute"))) {
 				// Attribute
 				string_del(tok->tokv.str);
 				*tok = proc_next_token(prep);