From d17700cc49f273d874eed635199f6f937ce28f8b Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Sat, 23 Feb 2002 08:43:03 +0000 Subject: [PATCH] Backport jackjansen's checkin of revision 2.37: Workaround for what is probably a problem in Apple's gcc: 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 6c2bbfd3e747..771e22e91342 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -3,7 +3,13 @@ #include #include +#ifdef __APPLE__ +#define destructor xxdestructor +#endif #include +#ifdef __APPLE__ +#undef destructor +#endif #include -- 2.47.3