Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macsetfiletype.c @ 1921:275951b08608 legacy-trunk
Make it work under MPW too.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 01 Oct 1994 14:24:17 +0000 |
| parents | eec0dc5aba60 |
| children | 8da03decef59 |
line wrap: on
line diff
--- a/Mac/Python/macsetfiletype.c Thu Sep 29 16:46:42 1994 +0000 +++ b/Mac/Python/macsetfiletype.c Sat Oct 01 14:24:17 1994 +0000 @@ -4,8 +4,7 @@ * */ -#include <Files.h> -#include <pascal.h> +#include "macdefs.h" int setfiletype(name, creator, type) @@ -15,7 +14,7 @@ FInfo info; unsigned char *pname; - pname = c2pstr(name); + pname = (StringPtr) c2pstr(name); if ( GetFInfo(pname, 0, &info) < 0 ) return -1; info.fdType = type;
