Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 22008:d24aadfe3c06 2.2
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.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Sat, 23 Feb 2002 08:43:03 +0000 |
| parents | 7a991d012cd6 |
| children | 61822d2b5e88 8b116a8449bd |
line wrap: on
line diff
--- a/Python/thread_pthread.h Sat Feb 23 08:31:37 2002 +0000 +++ b/Python/thread_pthread.h Sat Feb 23 08:43:03 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>
