]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make it work under MPW too.
authorGuido van Rossum <guido@python.org>
Sat, 1 Oct 1994 14:24:17 +0000 (14:24 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 1 Oct 1994 14:24:17 +0000 (14:24 +0000)
Mac/Python/macsetfiletype.c

index 7ba70807d55e9c6396f210f0b261ef7593d2d6f0..70647b92c36bc0818cf9770695005f7f966acf98 100644 (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;