summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-01-15 20:36:14 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-01-15 20:36:14 +0000
commit79adeecbcf02cf9872ffa18d66913cd0ee0db2b1 (patch)
treef566f9bf312845ffa7d905503e516bfe593f4bbc /Python/thread_pthread.h
parent7c84f749faf77e599afe5c19d3e896f9326d464c (diff)
downloadcpython-79adeecbcf02cf9872ffa18d66913cd0ee0db2b1.tar.gz
Workaround for what is probably a problem in Apple's gcc: <pthread.h> fails
on a function pointer formal argument called "destructor", which is typedeffed as a different function pointer type in object.h.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 6c2bbfd3e7..771e22e913 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -3,7 +3,13 @@
#include <stdlib.h>
#include <string.h>
+#ifdef __APPLE__
+#define destructor xxdestructor
+#endif
#include <pthread.h>
+#ifdef __APPLE__
+#undef destructor
+#endif
#include <signal.h>