0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 00:38:00 +01:00

Make it work under MPW too.

This commit is contained in:
Guido van Rossum 1994-10-01 14:24:17 +00:00
parent cd57dc3a98
commit 950d47fd67

View File

@ -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;