mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -07:00
Define TLS as _Thread_local is compiler supports C11 (#1304)
This avoids having warnings when compiling with Clang-MinGW on windows.
This commit is contained in:
parent
baa75cd1b8
commit
a04c8687ac
@ -98,7 +98,11 @@ BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, ULONG RandomBufferLength);
|
|||||||
|
|
||||||
#ifndef TLS
|
#ifndef TLS
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
|
# if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L)
|
||||||
|
# define TLS _Thread_local
|
||||||
|
# else
|
||||||
# define TLS __declspec(thread)
|
# define TLS __declspec(thread)
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define TLS
|
# define TLS
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user