From: Guido van Rossum Date: Sat, 1 Oct 1994 14:24:17 +0000 (+0000) Subject: Make it work under MPW too. X-Git-Tag: v1.1~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=950d47fd6789c5c7d8aa4a0708659e713db17895;p=thirdparty%2FPython%2Fcpython.git Make it work under MPW too. --- diff --git a/Mac/Python/macsetfiletype.c b/Mac/Python/macsetfiletype.c index 7ba70807d55e..70647b92c36b 100644 --- a/Mac/Python/macsetfiletype.c +++ b/Mac/Python/macsetfiletype.c @@ -4,8 +4,7 @@ * */ -#include -#include +#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;