From 79adeecbcf02cf9872ffa18d66913cd0ee0db2b1 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 15 Jan 2002 20:36:14 +0000 Subject: 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(+) (limited to 'Python/thread_pthread.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 -- cgit v1.2.1