mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-18 11:03:27 +08:00
Fix 128_run_atexit.c on linux
if we include standard headers on glibc-based systems then we can't use '__attribute__' (those are defined away for unknown compilers) but must use '__attribute' (or #undef that token).
This commit is contained in:
@@ -25,7 +25,7 @@ void cleanup4(int ret, void *arg)
|
||||
printf ("%d %s\n", ret, (char *) arg);
|
||||
}
|
||||
|
||||
void __attribute__((destructor)) cleanup5(void)
|
||||
void __attribute((destructor)) cleanup5(void)
|
||||
{
|
||||
printf ("cleanup5\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user