mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
4f3a62d9bc
commit
7668957508
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue