]> granicus.if.org Git - python/commitdiff
Workaround for what is probably a problem in Apple's gcc: <pthread.h> fails
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 15 Jan 2002 20:36:14 +0000 (20:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 15 Jan 2002 20:36:14 +0000 (20:36 +0000)
on a function pointer formal argument called "destructor", which is typedeffed
as a different function pointer type in object.h.

Python/thread_pthread.h

index 6c2bbfd3e747103abe9a79ba5ad87ed730a81fae..771e22e91342b2abb184ee247594914ae55c11a4 100644 (file)
@@ -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>