Minor patch for conditional defines in threads.c
Portability problem with CodeGear ("Borland") compiler 2007 on Windows
* threads.c: use 'defined' after #elif
diff --git a/threads.c b/threads.c
index 8d31393..98fd2c2 100644
--- a/threads.c
+++ b/threads.c
@@ -26,7 +26,7 @@
#endif
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
-#elif HAVE_WIN32_THREADS
+#elif defined HAVE_WIN32_THREADS
#include <windows.h>
#ifndef HAVE_COMPILER_TLS
#include <process.h>
@@ -593,7 +593,7 @@
#endif /* LIBXML_THREAD_ENABLED */
#ifdef HAVE_PTHREAD_H
-#elif HAVE_WIN32_THREADS
+#elif defined HAVE_WIN32_THREADS
#if !defined(HAVE_COMPILER_TLS)
#if defined(LIBXML_STATIC) && !defined(LIBXML_STATIC_FOR_DLL)
typedef struct _xmlGlobalStateCleanupHelperParams {
@@ -967,7 +967,7 @@
Sleep(0);
}
}
-#elif HAVE_BEOS_THREADS
+#elif defined HAVE_BEOS_THREADS
if (atomic_add(&run_once_init, 1) == 0) {
globalkey = tls_allocate();
tls_set(globalkey, NULL);