Windows: use same TLS strategy for both VC and MinGW in 64-bit mode
This commit is contained in:
parent
8d43c73a0c
commit
15797a7951
|
@ -28,8 +28,12 @@ extern "C" {
|
||||||
#if defined(MZ_USE_PLACES) || defined(MZ_USE_FUTURES)
|
#if defined(MZ_USE_PLACES) || defined(MZ_USE_FUTURES)
|
||||||
# define USE_THREAD_LOCAL
|
# define USE_THREAD_LOCAL
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
# if defined(_WIN64) && !defined(__MINGW32__)
|
# if defined(_WIN64)
|
||||||
# define THREAD_LOCAL __declspec(thread)
|
# if defined(__MINGW32__)
|
||||||
|
# define THREAD_LOCAL __thread
|
||||||
|
# else
|
||||||
|
# define THREAD_LOCAL __declspec(thread)
|
||||||
|
# endif
|
||||||
# define MZ_THREAD_EXTERN extern
|
# define MZ_THREAD_EXTERN extern
|
||||||
# define IMPLEMENT_THREAD_LOCAL_EXTERNALLY_VIA_PROC
|
# define IMPLEMENT_THREAD_LOCAL_EXTERNALLY_VIA_PROC
|
||||||
# else
|
# else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user