Use __declspec(thread) on Visual Studio

This commit is contained in:
Frank Denis 2017-11-25 23:12:22 +01:00
parent b84676c217
commit b9cbbef03b

View File

@ -64,7 +64,11 @@ BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, ULONG RandomBufferLength);
#endif
#ifndef TLS
# define TLS
# ifdef _WIN32
# define TLS __declspec(thread)
# else
# define TLS
# endif
#endif
typedef struct Salsa20RandomGlobal_ {