Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macglue.c @ 13608:a901c2c0166b legacy-trunk
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 14 Jul 2000 22:37:27 +0000 |
| parents | 483e75efc111 |
| children | c68003efb796 |
line wrap: on
line diff
--- a/Mac/Python/macglue.c Fri Jul 14 22:18:32 2000 +0000 +++ b/Mac/Python/macglue.c Fri Jul 14 22:37:27 2000 +0000 @@ -32,7 +32,7 @@ #include <Events.h> -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON /* Unfortunately this call is probably slower... */ #define LMGetTicks() TickCount() #endif @@ -161,7 +161,7 @@ int selectcur_hit; /* Set to true when "select current" selected */ char *prompt; /* The prompt */ }; -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON /* The StandardFile hooks don't exist in Carbon. This breaks GetDirectory, ** but the macfsn code will replace it by a NavServices version anyway. */ @@ -417,7 +417,7 @@ scan_event_queue(flush) int flush; { -#ifdef TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON /* CARBONXXXX To be implemented */ return; #else @@ -508,7 +508,7 @@ PyMac_HandleEventIntern(evp) EventRecord *evp; { -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON if ( evp->what == mouseDown ) { WindowPtr wp; @@ -585,7 +585,7 @@ */ if( in_here > 1 || !schedparams.process_events || (python_event_handler && !maycallpython) ) { -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON if ( maxsleep >= 0 ) { SystemTask(); } @@ -754,7 +754,7 @@ } return item; } -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON /* ** Ask the user for a directory. I still can't understand ** why Apple doesn't provide a standard solution for this...
