diff options
| author | Michael W. Hudson <mwh@python.net> | 2002-02-23 08:43:03 +0000 |
|---|---|---|
| committer | Michael W. Hudson <mwh@python.net> | 2002-02-23 08:43:03 +0000 |
| commit | d17700cc49f273d874eed635199f6f937ce28f8b (patch) | |
| tree | af84460e31e4a8a6b7bd7dbf541010654faa2a0c /Python/thread_pthread.h | |
| parent | 06efb7791037ca07aa4a35c242e7f57da149c37d (diff) | |
| download | cpython-git-d17700cc49f273d874eed635199f6f937ce28f8b.tar.gz | |
Backport jackjansen's checkin of revision 2.37:
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.
Diffstat (limited to 'Python/thread_pthread.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 6c2bbfd3e7..771e22e913 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> |
