check for clang before checking gcc < 4.8 path for __STDC_NO_ATOMICS__

Apparently clang is GCC 4.2 forever.
This commit is contained in:
Conor Hughes 2022-09-27 08:48:16 -07:00
parent e8c9f1872a
commit 5875370db6
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ extern void *yr_realloc(void *ptr, size_t size);
extern bool yr_use_terminal_color(void);
#if (__STDC_VERSION__ >= 201112L) && !__STDC_NO_ATOMICS__
#if !defined(__clang__) && (__STDC_VERSION__ >= 201112L) && !__STDC_NO_ATOMICS__
/* gcc 4.8 doesn't define __STDC_NO_ATOMICS__ but doesn't have stdatomic.h
* see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016
*/