[Python-checkins] CVS: python/dist/src/Python thread_pthread.h,2.36,2.37

Jack Jansen jackjansen@users.sourceforge.net
Tue, 15 Jan 2002 12:36:16 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv7774

Modified Files:
	thread_pthread.h 
Log Message:
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.


Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -d -r2.36 -r2.37
*** thread_pthread.h	2001/11/09 16:00:41	2.36
--- thread_pthread.h	2002/01/15 20:36:14	2.37
***************
*** 4,8 ****
--- 4,14 ----
  #include <stdlib.h>
  #include <string.h>
+ #ifdef __APPLE__
+ #define destructor xxdestructor
+ #endif
  #include <pthread.h>
+ #ifdef __APPLE__
+ #undef destructor
+ #endif
  #include <signal.h>