Kaydet (Commit) 950d47fd authored tarafından Guido van Rossum's avatar Guido van Rossum

Make it work under MPW too.

üst cd57dc3a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment