diff options
author | Kurt H Maier <khm@pnnl.gov> | 2020-05-07 17:55:15 -0700 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2020-05-08 10:36:29 -0400 |
commit | bd6f12068b28ba7eb96a3cd495e2201c852682b7 (patch) | |
tree | 1781380874cafc1e417741d1f827d934559c1156 /src | |
parent | 5802b09e9d8ceadd2cefdccfd0391c04e492369b (diff) | |
download | plan9port-bd6f12068b28ba7eb96a3cd495e2201c852682b7.tar.gz plan9port-bd6f12068b28ba7eb96a3cd495e2201c852682b7.tar.bz2 plan9port-bd6f12068b28ba7eb96a3cd495e2201c852682b7.zip |
fmt: adjust GCC version check
atomics were added in GCC 4.9: https://gcc.gnu.org/gcc-4.9/changes.html
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/fmt/fmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/fmt/fmt.c b/src/lib9/fmt/fmt.c index fdfff65d..47b186a4 100644 --- a/src/lib9/fmt/fmt.c +++ b/src/lib9/fmt/fmt.c @@ -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)) |