mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k standalone Python compile.
This commit is contained in:
parent
6f9dd5d719
commit
68ecab455c
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue