History

Fix make lib/stdatomic.c gcc compatible

herman ten brugge committed 5 years ago

Commit 14325741 parent f8e50d21 file · +2 −1Browse files

Unified · Split

lib/stdatomic.c+2−1
@@ -42,7 +42,8 @@ · 41 unmodified lines
4242 *(volatile TYPE *)atom = value; \
4343 }
4444
45−#if defined(__GNUC__)
45+/* Some tcc targets set __GNUC__ */
46+#if defined(__GNUC__) && !defined(__TINYC__)
4647 #define ATOMIC_LOAD(t,a,b,c) t b; __atomic_load((t *)a, (t *)&b, c)
4748 #define COMPARE_EXCHANGE(t,a,b,c,d,e,f) __atomic_compare_exchange((t *)a,b,&c,d,e,f)
4849 #else

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