1
0
Fork 0

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:
Michael Matz 2023-03-13 17:01:35 +01:00
parent 19e3e10e4b
commit 4dc4e93f1d
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}