Kaydet (Commit) 68ecab45 authored tarafından Jack Jansen's avatar Jack Jansen

Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone Python compile.

üst 6f9dd5d7
...@@ -31,10 +31,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -31,10 +31,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#endif #endif
extern void PyMac_InitApplet(); extern void PyMac_InitApplet();
#ifdef USE_MAC_APPLET_SUPPORT
extern void PyMac_InitApplication(); extern void PyMac_InitApplication();
#endif /* USE_MAC_APPLET_SUPPORT */
void void
main() { main() {
#ifdef USE_MAC_APPLET_SUPPORT
Handle mainpyc; Handle mainpyc;
mainpyc = Get1NamedResource('PYC ', "\p__main__"); mainpyc = Get1NamedResource('PYC ', "\p__main__");
...@@ -42,4 +45,7 @@ main() { ...@@ -42,4 +45,7 @@ main() {
PyMac_InitApplet(); PyMac_InitApplet();
else else
PyMac_InitApplication(); PyMac_InitApplication();
#else
PyMac_InitApplication();
#endif /* USE_MAC_APPLET_SUPPORT */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment