summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macapplication.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-02-15 23:34:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-02-15 23:34:56 (GMT)
commit68ecab455c8db8fc04e5fe65ee660149cb2bbef0 (patch)
tree4a1d01b7cc04e6da9cb25acb0b42be22b03cc956 /Mac/Python/macapplication.c
parent6f9dd5d7194f34878bca3631dbd539152cec0b17 (diff)
downloadcpython-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.c6
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 */
}