basic/missing_threads: drop glibc < 2.16 check

glibc 2.16 has been our baseline for ~10y
(c.f. 3dd26f3e3a)
This commit is contained in:
Mike Yuan
2024-12-24 16:55:21 +01:00
parent 544b7718b3
commit 3ac386de0a
+1 -3
View File
@@ -5,9 +5,7 @@
#if HAVE_THREADS_H
# include <threads.h>
#elif !(defined(thread_local))
/* Don't break on glibc < 2.16 that doesn't define __STDC_NO_THREADS__
* see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769 */
# if __STDC_VERSION__ >= 201112L && !(defined(__STDC_NO_THREADS__) || (defined(__GNU_LIBRARY__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 16))
# if __STDC_VERSION__ >= 201112L && !(defined(__STDC_NO_THREADS__))
# define thread_local _Thread_local
# else
# define thread_local __thread