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
25 printf ("%d %s\n", ret, (char *) arg);25 printf ("%d %s\n", ret, (char *) arg);
26}26}
27 27
28void __attribute__((destructor)) cleanup5(void)28void __attribute((destructor)) cleanup5(void)
29{29{
30 printf ("cleanup5\n");30 printf ("cleanup5\n");
31}31}

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