[Python-checkins] CVS: python/dist/src/Mac/Modules/win winsupport.py,1.27,1.28

Jack Jansen jackjansen@users.sourceforge.net
2001年11月05日 08:16:17 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/win
In directory usw-pr-cvs1:/tmp/cvs-serv18566/python/Mac/Modules/win
Modified Files:
	winsupport.py 
Log Message:
First tweaks to allow MacPython to be compiled with
Universal Headers 3.4
Index: winsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/winsupport.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** winsupport.py	2001年09月05日 10:31:18	1.27
--- winsupport.py	2001年11月05日 16:16:15	1.28
***************
*** 71,79 ****
 #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
--- 71,81 ----
 #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

AltStyle によって変換されたページ (->オリジナル) /