Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macapplication.c @ 10174:744db86e0311 legacy-trunk
Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone Python compile.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Mon, 15 Feb 1999 23:34:56 +0000 |
| parents | 73e5e3f51b87 |
| children | 86890c073c3b |
line wrap: on
line diff
--- a/Mac/Python/macapplication.c Mon Feb 15 21:43:55 1999 +0000 +++ b/Mac/Python/macapplication.c Mon Feb 15 23:34:56 1999 +0000 @@ -31,10 +31,13 @@ #endif extern void PyMac_InitApplet(); +#ifdef USE_MAC_APPLET_SUPPORT extern void PyMac_InitApplication(); +#endif /* USE_MAC_APPLET_SUPPORT */ void main() { +#ifdef USE_MAC_APPLET_SUPPORT Handle mainpyc; mainpyc = Get1NamedResource('PYC ', "\p__main__"); @@ -42,4 +45,7 @@ PyMac_InitApplet(); else PyMac_InitApplication(); +#else + PyMac_InitApplication(); +#endif /* USE_MAC_APPLET_SUPPORT */ }
