[Python-checkins] python/dist/src/Mac/Modules macosmodule.c, 1.66, 1.66.12.1

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Wed Jun 2 09:42:49 EDT 2004


Update of /cvsroot/python/python/dist/src/Mac/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27029/Mac/Modules

Modified Files:
      Tag: release23-maint
	macosmodule.c 
Log Message:
CGMainDisplayID() doesn't exist on 10.1, so don't try to call it when
building for that platform.


Index: macosmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/macosmodule.c,v
retrieving revision 1.66
retrieving revision 1.66.12.1
diff -C2 -d -r1.66 -r1.66.12.1
*** macosmodule.c	19 Mar 2003 22:51:42 -0000	1.66
--- macosmodule.c	2 Jun 2004 13:42:47 -0000	1.66.12.1
***************
*** 546,552 ****
--- 546,559 ----
  		** no need for us to cache.
  		*/
+ #ifdef kCGNullDirectDisplay
+ 		/* On 10.1 CGMainDisplayID() isn't available, and
+ 		** kCGNullDirectDisplay isn't defined.
+ 		*/
  		if (CGMainDisplayID() == 0) {
  			rv = Py_False;
  		} else {
+ #else
+ 		{
+ #endif
  			if (GetCurrentProcess(&psn) < 0 ||
  				SetFrontProcess(&psn) < 0) {




More information about the Python-checkins mailing list