Require C11 thread_local keyword and <threads.h> header

Change the autoconf check to require C11 <threads.h> header and
thread_local keyword.
This commit is contained in:
Ondřej Surý
2023-01-10 12:48:03 +01:00
parent 20fd0cc60b
commit 1c456c0284
6 changed files with 14 additions and 89 deletions

View File

@@ -16,8 +16,11 @@
/*! \file */
#include <pthread.h>
#if HAVE_THREADS_H
#include <threads.h>
#else
#define thread_local _Thread_local
#endif
#if defined(HAVE_PTHREAD_NP_H)