[Python-checkins] CVS: python/dist/src/Mac/Modules/win _Winmodule.c,1.3,1.4

Jack Jansen jackjansen@users.sourceforge.net
Mon, 05 Nov 2001 08:16:25 -0800


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

Modified Files:
	_Winmodule.c 
Log Message:
First tweaks to allow MacPython to be compiled with
Universal Headers 3.4

Index: _Winmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/_Winmodule.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** _Winmodule.c	2001/09/05 10:29:15	1.3
--- _Winmodule.c	2001/11/05 16:16:22	1.4
***************
*** 37,45 ****
  #endif
  
! #if !ACCESSOR_CALLS_ARE_FUNCTIONS
  /* Carbon calls that we emulate in classic mode */
  #define GetWindowSpareFlag(win) (((CWindowPeek)(win))->spareFlag)
  #define GetWindowFromPort(port) ((WindowRef)(port))
  #define GetWindowPortBounds(win, rectp) (*(rectp) = ((CWindowPeek)(win))->port.portRect)
  #define IsPointerValid(p) (((long)p&3) == 0)
  #endif
--- 37,47 ----
  #endif
  
! #if !ACCESSOR_CALLS_ARE_FUNCTIONS && UNIVERSAL_INTERFACES_VERSION < 0x340
  /* Carbon calls that we emulate in classic mode */
  #define GetWindowSpareFlag(win) (((CWindowPeek)(win))->spareFlag)
  #define GetWindowFromPort(port) ((WindowRef)(port))
  #define GetWindowPortBounds(win, rectp) (*(rectp) = ((CWindowPeek)(win))->port.portRect)
+ #endif
+ #if !ACCESSOR_CALLS_ARE_FUNCTIONS
  #define IsPointerValid(p) (((long)p&3) == 0)
  #endif