mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-06 06:40:07 +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:
parent
19e3e10e4b
commit
4dc4e93f1d
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user