comparison 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
comparison
equal deleted inserted replaced
21723:ebe6bd576f65 21724:884e57bf3ada
1 1
2 /* Posix threads interface */ 2 /* Posix threads interface */
3 3
4 #include <stdlib.h> 4 #include <stdlib.h>
5 #include <string.h> 5 #include <string.h>
6 #ifdef __APPLE__
7 #define destructor xxdestructor
8 #endif
6 #include <pthread.h> 9 #include <pthread.h>
10 #ifdef __APPLE__
11 #undef destructor
12 #endif
7 #include <signal.h> 13 #include <signal.h>
8 14
9 15
10 /* try to determine what version of the Pthread Standard is installed. 16 /* try to determine what version of the Pthread Standard is installed.
11 * this is important, since all sorts of parameter types changed from 17 * this is important, since all sorts of parameter types changed from