From 4dc4e93f1d2a7f1c0dda1ff9be2d2b0e875b37ba Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 13 Mar 2023 17:01:35 +0100 Subject: [PATCH] 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). --- tests/tests2/128_run_atexit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests2/128_run_atexit.c b/tests/tests2/128_run_atexit.c index c3ff1fea..0748c86f 100644 --- a/tests/tests2/128_run_atexit.c +++ b/tests/tests2/128_run_atexit.c @@ -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"); }