mirror of
https://github.com/ptitSeb/box64.git
synced 2025-10-14 02:38:54 +08:00
[WRAPPERHELPER] Added legacy __attribute support (#2996)
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
// Ignore all attributes
|
||||
#define __attribute__(_)
|
||||
#define __attribute(_)
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user