]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport jackjansen's checkin of revision 2.37:
authorMichael W. Hudson <mwh@python.net>
Sat, 23 Feb 2002 08:43:03 +0000 (08:43 +0000)
committerMichael W. Hudson <mwh@python.net>
Sat, 23 Feb 2002 08:43:03 +0000 (08:43 +0000)
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.

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>