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:
parent
cd57dc3a98
commit
950d47fd67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user