cpython/Mac/Include/macdefs.h

34 lines
720 B
C
Raw Normal View History

/* Useful #includes and #defines for programming a set of Unix
look-alike file system access functions on the Macintosh.
Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
*/
#include <Types.h>
#include <Files.h>
#include <OSUtils.h>
1997-04-08 12:24:58 -03:00
#include <errno.h>
#include <string.h>
1994-12-14 10:10:51 -04:00
#ifdef __MWERKS__
#include "errno_unix.h"
#include <TextUtils.h>
1994-12-14 10:10:51 -04:00
#endif
/* We may be able to use a std routine in think, don't know */
extern unsigned char *Pstring(char *);
extern char *getbootvol(void);
extern char *getwd(char *);
extern int sync(void);
/* Universal constants: */
#define MAXPATH 256
1997-04-08 12:24:58 -03:00
#ifndef __MSL__
#define TRUE 1
#define FALSE 0
1997-04-08 12:24:58 -03:00
#endif
#ifndef NULL
#define NULL 0
#endif
#define EOS '\0'
#define SEP ':'