History

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).

Michael Matz committed 3 years ago

Commit 4dc4e931 parent 19e3e101 file · +1 −1Browse files

Unified · Split

tests/tests2/128_run_atexit.c+1−1
@@ -25,7 +25,7 @@ void cleanup4(int ret, void *arg) · 24 unmodified lines
2525 printf ("%d %s\n", ret, (char *) arg);
2626 }
2727
28−void __attribute__((destructor)) cleanup5(void)
28+void __attribute((destructor)) cleanup5(void)
2929 {
3030 printf ("cleanup5\n");
3131 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t