[Python-checkins] CVS: python/dist/src/Mac/Modules gestaltmodule.c,1.6,1.7

Jack Jansen jackjansen@users.sourceforge.net
Sat, 12 May 2001 15:46:37 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv24671/Modules

Modified Files:
	gestaltmodule.c 
Log Message:
Got the first MacPython module working under MacOSX/MachO (gestalt). Main changes
are including Carbon/Carbon.h in stead of the old headers (unless WITHOUT_FRAMEWORKS
is defined, as it will be for classic MacPython) and selectively disabling all the
stuff that is unneeded in a unix-Python (event handling, etc).


Index: gestaltmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/gestaltmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** gestaltmodule.c	1999/08/23 11:37:51	1.6
--- gestaltmodule.c	2001/05/12 22:46:35	1.7
***************
*** 28,33 ****
--- 28,37 ----
  #include "macglue.h"
  
+ #ifdef WITHOUT_FRAMEWORKS
  #include <Types.h>
  #include <Gestalt.h>
+ #else
+ #include <Carbon/Carbon.h>
+ #endif
  
  static PyObject *