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
1 changed files with 2 additions and 3 deletions

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;