Define TLS as _Thread_local if the compiler supports C11 (#1304)

This commit is contained in:
Scr3amer
2023-09-01 23:47:12 +02:00
committed by Frank Denis
parent 6256e097c9
commit 52b90532f6
@@ -93,6 +93,10 @@ BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, ULONG RandomBufferLength);
# endif
#endif
#if !defined(TLS) && !defined(__STDC_NO_THREADS__) && \
defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
# define TLS _Thread_local
#endif
#ifndef TLS
# ifdef _WIN32
# define TLS __declspec(thread)