From cbf630f0a916b6e34295379db01a6e2950e05012 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 11 Jul 2000 21:59:16 +0000 Subject: Include macglue.h for some function prototypes, and renamed a few mac-specific functions to have a PyMac_ name. --- Python/pythonrun.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 9cc80724f83..afb9589a519 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 */ -- cgit v1.2.3