mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fmt: adjust GCC version check
atomics were added in GCC 4.9: https://gcc.gnu.org/gcc-4.9/changes.html
This commit is contained in:
parent
5802b09e9d
commit
bd6f12068b
1 changed files with 2 additions and 2 deletions
|
@ -10,10 +10,10 @@
|
|||
* even though that's technically racy. A mutex is not OK, because we want to
|
||||
* be able to call print from signal handlers.)
|
||||
*
|
||||
* RHEL is using an old GCC (atomics were added in GCC 4.8).
|
||||
* RHEL is using an old GCC (atomics were added in GCC 4.9).
|
||||
* AIX is using its own IBM compiler (XL C).
|
||||
*/
|
||||
#if __IBMC__ || !__clang__ && __GNUC__ && (__GNUC__ < 4 || (__GNUC__==4 && __GNUC_MINOR__<8))
|
||||
#if __IBMC__ || !__clang__ && __GNUC__ && (__GNUC__ < 4 || (__GNUC__==4 && __GNUC_MINOR__<9))
|
||||
#warning not using C11 stdatomic on legacy system
|
||||
#define _Atomic volatile
|
||||
#define atomic_load(x) (*(x))
|
||||
|
|
Loading…
Reference in a new issue