diff options
author | setser <[email protected]> | 2022-05-09 00:13:37 +0300 |
---|---|---|
committer | setser <[email protected]> | 2022-05-09 00:13:37 +0300 |
commit | e87e3fc8d0e04eb7ba3eee221bb91613b527ad85 (patch) | |
tree | 5279c128bdbdf902b9a08d9fae8e55b91910a553 /contrib/libs/libxml/threads.c | |
parent | f4f3e4024a1f32bd0bc3fa20239025a1b179e42d (diff) |
Update libxml to 2.9.13
ref:f572491d236694e847142c36f0f5546c649e05d7
Diffstat (limited to 'contrib/libs/libxml/threads.c')
-rw-r--r-- | contrib/libs/libxml/threads.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/libs/libxml/threads.c b/contrib/libs/libxml/threads.c index 72df9ba9979..503d2bfbec0 100644 --- a/contrib/libs/libxml/threads.c +++ b/contrib/libs/libxml/threads.c @@ -885,8 +885,6 @@ xmlInitThreads(void) } } #endif /* XML_PTHREAD_WEAK */ -#elif defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL)) - InitializeCriticalSection(&cleanup_helpers_cs); #endif } @@ -958,6 +956,9 @@ xmlOnceInit(void) if (!run_once.done) { if (InterlockedIncrement(&run_once.control) == 1) { #if !defined(HAVE_COMPILER_TLS) +#if !defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL) + InitializeCriticalSection(&cleanup_helpers_cs); +#endif globalkey = TlsAlloc(); #endif mainthread = GetCurrentThreadId(); |