[libxml2] Minor patch for conditional defines in threads.c
- From: Daniel Veillard <veillard src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libxml2] Minor patch for conditional defines in threads.c
- Date: Wed, 30 Sep 2009 22:14:28 +0000 (UTC)
commit 243b034d4588ddd45168badcefe3d41e586568f3
Author: Eric Zurcher <Eric Zurcher csiro au>
Date: Thu Oct 1 00:13:07 2009 +0200
Minor patch for conditional defines in threads.c
Portability problem with CodeGear ("Borland") compiler 2007 on Windows
* threads.c: use 'defined' after #elif
threads.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
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 @@ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]