Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 21724:884e57bf3ada legacy-trunk
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.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Tue, 15 Jan 2002 20:36:14 +0000 |
| parents | 7a991d012cd6 |
| children | 61822d2b5e88 8b116a8449bd |
line wrap: on
line diff
--- a/Python/thread_pthread.h Tue Jan 15 19:21:05 2002 +0000 +++ b/Python/thread_pthread.h Tue Jan 15 20:36:14 2002 +0000 @@ -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>
