From f75c65450317a1825918dffb5b98c888676848ea Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Sun, 1 Dec 2024 18:18:43 +0100 Subject: [PATCH] Fixes to feature test macros --- include/xchange.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xchange.h b/include/xchange.h index ac03538..1b92a63 100644 --- a/include/xchange.h +++ b/include/xchange.h @@ -275,7 +275,7 @@ char *xStringCopyOf(const char *str); # ifndef THREAD_LOCAL # if __STDC_VERSION__ >= 201112L # define THREAD_LOCAL _Thread_local ///< C11 standard for thread-local variables -# elif __GNUC__ >= 3 && __GNUC_MINOR__ >= 3 +# elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) # define THREAD_LOCAL __thread ///< pre C11 gcc >= 3.3 standard for thread-local variables # else # define THREAD_LOCAL ///< no thread-local variables