<commit_before>--- misc/libxml2-2.7.6/configure	2008-01-11 17:01:56.000000000 +0900
+++ misc/build/libxml2-2.7.6/configure	2009-09-07 20:48:47.656250000 +0900
@@ -19914,6 +19914,8 @@
 
 if test "$with_modules" != "no" ; then
  case "$host" in
+  *-*-mingw*)
+  ;;
   *-*-cygwin*)
   MODULE_EXTENSION=".dll"
   { $as_echo "$as_me:$LINENO: checking for dlopen in -lcygwin" >&5
--- misc/libxml2-2.7.6/libxml.h	2007-11-23 19:47:23.000000000 +0900
+++ misc/build/libxml2-2.7.6/libxml.h	2009-07-10 14:37:34.988250000 +0900
@@ -30,6 +30,10 @@
 #include <libxml/xmlversion.h>
 #else
 #include "config.h"
+#ifdef __MINGW32__
+#undef HAVE_LIBPTHREAD 
+#undef HAVE_PTHREAD_H 
+#endif
 #include <libxml/xmlversion.h>
 #endif
 
--- misc/libxml2-2.7.6/include/libxml/xmlexports.h	2009-09-25 00:31:59.000000000 +0900
+++ misc/build/libxml2-2.7.6/include/libxml/xmlexports.h	2010-06-06 11:15:54.160750000 +0900
@@ -113,7 +113,7 @@
    * _imp__xmlFree listed as missing. Try to workaround the problem
    * by also making that declaration when compiling client code.
    */
-  #if !defined(LIBXML_STATIC)
+  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)<commit_msg>i#112159: MinGW port: more fix for libxml2 2.7.6 to avoid using pthreads<commit_after>--- misc/libxml2-2.7.6/configure	2008-01-11 17:01:56.000000000 +0900
+++ misc/build/libxml2-2.7.6/configure	2009-09-07 20:48:47.656250000 +0900
@@ -19914,6 +19914,8 @@
 
 if test "$with_modules" != "no" ; then
  case "$host" in
+  *-*-mingw*)
+  ;;
   *-*-cygwin*)
   MODULE_EXTENSION=".dll"
   { $as_echo "$as_me:$LINENO: checking for dlopen in -lcygwin" >&5
@@ -20632,11 +20636,10 @@
 
     fi
     case $host_os in
-       *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
+       *mingw32*)
                WITH_THREADS="1"
                THREADS_W32="Win32"
 	       THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
-           fi
        ;;
        *cygwin*) THREAD_LIBS=""
        ;;
--- misc/libxml2-2.7.6/libxml.h	2007-11-23 19:47:23.000000000 +0900
+++ misc/build/libxml2-2.7.6/libxml.h	2009-07-10 14:37:34.988250000 +0900
@@ -30,6 +30,10 @@
 #include <libxml/xmlversion.h>
 #else
 #include "config.h"
+#ifdef __MINGW32__
+#undef HAVE_LIBPTHREAD 
+#undef HAVE_PTHREAD_H 
+#endif
 #include <libxml/xmlversion.h>
 #endif
 
--- misc/libxml2-2.7.6/include/libxml/xmlexports.h	2009-09-25 00:31:59.000000000 +0900
+++ misc/build/libxml2-2.7.6/include/libxml/xmlexports.h	2010-06-06 11:15:54.160750000 +0900
@@ -113,7 +113,7 @@
    * _imp__xmlFree listed as missing. Try to workaround the problem
    * by also making that declaration when compiling client code.
    */
-  #if !defined(LIBXML_STATIC)
+  #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
{'fraction_non_alphanumeric': 0.17351091379948205, 'fraction_numerical': 0.17277099519052905, 'mean_word_length': 3.3896103896103895, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 35}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4483090', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1128, 'n_words': 206}