From 7668957508a1129c2171e520471c453098588834 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 15 Jan 2002 20:36:14 +0000 Subject: [PATCH] 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 6c2bbfd3e7..771e22e913 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.40.0