Commit 243b034d authored by Eric Zurcher's avatar Eric Zurcher Committed by Daniel Veillard

Minor patch for conditional defines in threads.c

Portability problem with CodeGear ("Borland") compiler 2007 on Windows
* threads.c: use 'defined' after #elif
parent 7a896ce2
......@@ -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 @@ xmlNewGlobalState(void)
#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 @@ xmlOnceInit(void)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment