diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-02-15 23:34:56 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-02-15 23:34:56 (GMT) |
commit | 68ecab455c8db8fc04e5fe65ee660149cb2bbef0 (patch) | |
tree | 4a1d01b7cc04e6da9cb25acb0b42be22b03cc956 /Mac/Python/macapplication.c | |
parent | 6f9dd5d7194f34878bca3631dbd539152cec0b17 (diff) | |
download | cpython-68ecab455c8db8fc04e5fe65ee660149cb2bbef0.zip cpython-68ecab455c8db8fc04e5fe65ee660149cb2bbef0.tar.gz cpython-68ecab455c8db8fc04e5fe65ee660149cb2bbef0.tar.bz2 |
Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone Python compile.
Diffstat (limited to 'Mac/Python/macapplication.c')
-rw-r--r-- | Mac/Python/macapplication.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Python/macapplication.c b/Mac/Python/macapplication.c index a92eb3a..19c3ab1 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 */ } |