summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-10-01 14:24:17 (GMT)
committerGuido van Rossum <guido@python.org>1994-10-01 14:24:17 (GMT)
commit950d47fd6789c5c7d8aa4a0708659e713db17895 (patch)
tree00692c98028782ea562183aa4505c7ad3e3aef81 /Mac
parentcd57dc3a9861fe9fe85bc76580a15542354c63e5 (diff)
downloadcpython-950d47fd6789c5c7d8aa4a0708659e713db17895.zip
cpython-950d47fd6789c5c7d8aa4a0708659e713db17895.tar.gz
cpython-950d47fd6789c5c7d8aa4a0708659e713db17895.tar.bz2
Make it work under MPW too.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Python/macsetfiletype.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mac/Python/macsetfiletype.c b/Mac/Python/macsetfiletype.c
index 7ba7080..70647b9 100644
--- a/Mac/Python/macsetfiletype.c
+++ b/Mac/Python/macsetfiletype.c
@@ -4,8 +4,7 @@
*
*/
-#include <Files.h>
-#include <pascal.h>
+#include "macdefs.h"
int
setfiletype(name, creator, type)
@@ -15,7 +14,7 @@ long creator, type;
FInfo info;
unsigned char *pname;
- pname = c2pstr(name);
+ pname = (StringPtr) c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;