mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use __declspec(thread) on Visual Studio
This commit is contained in:
@@ -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_ {
|
||||
|
||||
Reference in New Issue
Block a user