[Python-checkins] python/dist/src/Mac/Modules macosmodule.c, 1.70,
1.71
jackjansen at users.sourceforge.net
jackjansen at users.sourceforge.net
Wed Jun 2 09:44:08 EDT 2004
Update of /cvsroot/python/python/dist/src/Mac/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27347
Modified Files:
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.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** macosmodule.c 20 Nov 2003 13:30:55 -0000 1.70
--- macosmodule.c 2 Jun 2004 13:44:05 -0000 1.71
***************
*** 440,446 ****
--- 440,453 ----
** 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