Skip to content

Commit 73abec1

Browse files
author
jackjansen
committed
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. git-svn-id: http://svn.python.org/projects/python/trunk@25085 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d9f2a64 commit 73abec1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Python/thread_pthread.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44
#include <stdlib.h>
55
#include <string.h>
6+
#ifdef __APPLE__
7+
#define destructor xxdestructor
8+
#endif
69
#include <pthread.h>
10+
#ifdef __APPLE__
11+
#undef destructor
12+
#endif
713
#include <signal.h>
814

915

0 commit comments

Comments
 (0)