From: Jack Jansen Date: Tue, 15 Jan 2002 20:36:14 +0000 (+0000) Subject: Workaround for what is probably a problem in Apple's gcc: fails X-Git-Tag: v2.3c1~6845 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7668957508a1129c2171e520471c453098588834;p=python 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 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