]> granicus.if.org Git - python/commitdiff
Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone...
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 15 Feb 1999 23:34:56 +0000 (23:34 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 15 Feb 1999 23:34:56 +0000 (23:34 +0000)
Mac/Python/macapplication.c

index a92eb3a12804bc096d1da2b6a997d9860c81c5ad..19c3ab16330439b49302acf1a862e98fc573e62b 100644 (file)
@@ -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 */
 }