aboutsummaryrefslogtreecommitdiffstats
path: root/threads.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-10-11 10:50:10 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-10-11 10:50:10 +0000
commitc790bf4b36c3a7955351035f636ae93828bf141a (patch)
treea5317690815c8850a3bd076bd9661d4f812e09c1 /threads.c
parent2b0f8799086f2a54444c618ab3ed01a8177491f2 (diff)
downloadandroid_external_libxml2-c790bf4b36c3a7955351035f636ae93828bf141a.tar.gz
android_external_libxml2-c790bf4b36c3a7955351035f636ae93828bf141a.tar.bz2
android_external_libxml2-c790bf4b36c3a7955351035f636ae93828bf141a.zip
patch from Mike Hommey applied Windows patch from Jesse Pelton and
* configure.in: patch from Mike Hommey * threads.c: applied Windows patch from Jesse Pelton and Stephane Bidoul * parser.c: fix the potentially nasty access to ctxt->serror without checking first that the SAX block is version 2 Daniel
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/threads.c b/threads.c
index 63d50b0e..a17ea2f6 100644
--- a/threads.c
+++ b/threads.c
@@ -541,7 +541,7 @@ xmlInitThreads(void)
#ifdef DEBUG_THREADS
xmlGenericError(xmlGenericErrorContext, "xmlInitThreads()\n");
#endif
-#if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS)
+#if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
InitializeCriticalSection(&cleanup_helpers_cs);
#endif
}
@@ -558,7 +558,7 @@ xmlCleanupThreads(void)
#ifdef DEBUG_THREADS
xmlGenericError(xmlGenericErrorContext, "xmlCleanupThreads()\n");
#endif
-#if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS)
+#if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
if (globalkey != TLS_OUT_OF_INDEXES) {
xmlGlobalStateCleanupHelperParams * p;
EnterCriticalSection(&cleanup_helpers_cs);