diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-11 21:59:16 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-11 21:59:16 +0000 |
commit | 483e293d6b1e26f96f4b910e09e3351158a86e6e (patch) | |
tree | fafbf1f5934368b5bd99df98b957734124a58d7f /Python/pythonrun.c | |
parent | 108f8e865aea83f7f92c79270ac72d39ddc18c2b (diff) | |
download | cpython-483e293d6b1e26f96f4b910e09e3351158a86e6e.tar.gz |
Include macglue.h for some function prototypes, and renamed a few
mac-specific functions to have a PyMac_ name.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 9cc80724f8..afb9589a51 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -34,6 +34,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include "windows.h" #endif +#ifdef macintosh +#include "macglue.h" +#endif extern char *Py_GetPath(); extern grammar _PyParser_Grammar; /* From graminit.c */ @@ -561,8 +564,8 @@ PyRun_SimpleFile(fp, filename) if (strcmp(ext, ".pyc") == 0 || strcmp(ext, ".pyo") == 0 #ifdef macintosh /* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */ - || getfiletype(filename) == 'PYC ' - || getfiletype(filename) == 'APPL' + || PyMac_getfiletype(filename) == 'PYC ' + || PyMac_getfiletype(filename) == 'APPL' #endif /* macintosh */ ) { /* Try to run a pyc file. First, re-open in binary */ |