1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

Remove HAVE_WIN32_THREADS configuration flag

Check for LIBXML_THREAD_ENABLED and _WIN32 instead.
This commit is contained in:
Nick Wellnhofer
2022-09-04 01:49:41 +02:00
parent 13a6637815
commit 1e60c76821
8 changed files with 47 additions and 58 deletions

View File

@@ -10,7 +10,7 @@
#include <libxml/catalog.h>
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#elif defined HAVE_WIN32_THREADS
#elif defined(_WIN32)
#include <windows.h>
#endif
#include <string.h>
@@ -23,7 +23,7 @@
#define TEST_REPEAT_COUNT 500
#ifdef HAVE_PTHREAD_H
static pthread_t tid[MAX_ARGC];
#elif defined HAVE_WIN32_THREADS
#elif defined(_WIN32)
static HANDLE tid[MAX_ARGC];
#endif
@@ -141,7 +141,7 @@ main(void)
xmlMemoryDump();
return (0);
}
#elif defined HAVE_WIN32_THREADS
#elif defined(_WIN32)
static DWORD WINAPI
win32_thread_specific_data(void *private_data)
{