From 68ecab455c8db8fc04e5fe65ee660149cb2bbef0 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 15 Feb 1999 23:34:56 +0000 Subject: [PATCH] Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone Python compile. --- Mac/Python/macapplication.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mac/Python/macapplication.c b/Mac/Python/macapplication.c index a92eb3a1280..19c3ab16330 100644 --- a/Mac/Python/macapplication.c +++ b/Mac/Python/macapplication.c @@ -31,10 +31,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #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 @@ main() { PyMac_InitApplet(); else PyMac_InitApplication(); +#else + PyMac_InitApplication(); +#endif /* USE_MAC_APPLET_SUPPORT */ }