diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-01-15 20:36:14 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-01-15 20:36:14 (GMT) |
commit | 7668957508a1129c2171e520471c453098588834 (patch) | |
tree | 1f7927e96476d5f035a0d04d9a972c6eb7eb412e | |
parent | 4f3a62d9bcc5219cfda370f540e6040a878d3b4f (diff) | |
download | cpython-7668957508a1129c2171e520471c453098588834.zip cpython-7668957508a1129c2171e520471c453098588834.tar.gz cpython-7668957508a1129c2171e520471c453098588834.tar.bz2 |
Workaround for what is probably a problem in Apple's gcc: <pthread.h> fails
on a function pointer formal argument called "destructor", which is typedeffed
as a different function pointer type in object.h.
-rw-r--r-- | Python/thread_pthread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 6c2bbfd..771e22e 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -3,7 +3,13 @@ #include <stdlib.h> #include <string.h> +#ifdef __APPLE__ +#define destructor xxdestructor +#endif #include <pthread.h> +#ifdef __APPLE__ +#undef destructor +#endif #include <signal.h> |