1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

Minor patch for conditional defines in threads.c

Portability problem with CodeGear ("Borland") compiler 2007 on Windows
* threads.c: use 'defined' after #elif
This commit is contained in:
Eric Zurcher 2009-10-01 00:13:07 +02:00 committed by Daniel Veillard
parent 7a896ce260
commit 243b034d45

View File

@ -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);