From: Michael W. Hudson Date: Sat, 23 Feb 2002 08:43:03 +0000 (+0000) Subject: Backport jackjansen's checkin of revision 2.37: X-Git-Tag: v2.2.1c1~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d17700cc49f273d874eed635199f6f937ce28f8b;p=thirdparty%2FPython%2Fcpython.git 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. --- 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