Update for release.
[python/dscho.git] / Mac / Include / macdefs.h
blobdf7d6f74b4eeae23d5ee3207496c699d4db211c4
1 /* Useful #includes and #defines for programming a set of Unix
2 look-alike file system access functions on the Macintosh.
3 Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
4 */
5 #ifndef Py_MACDEFS_H
6 #define Py_MACDEFS_H
8 #include <Types.h>
9 #include <Files.h>
10 #include <OSUtils.h>
12 #include <errno.h>
13 #include <string.h>
14 #ifdef __MWERKS__
15 #include "errno_unix.h"
16 #include <TextUtils.h>
17 #endif
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
23 /* We may be able to use a std routine in think, don't know */
24 extern unsigned char *Pstring(char *);
25 extern char *getbootvol(void);
26 extern char *getwd(char *);
27 #ifndef USE_GUSI
28 extern int sync(void);
29 #endif
31 /* Universal constants: */
32 #define MAXPATH 256
33 #ifndef __MSL__
34 #define TRUE 1
35 #define FALSE 0
36 #endif
37 #ifndef NULL
38 #define NULL 0
39 #endif
40 #define EOS '\0'
41 #define SEP ':'
43 #ifdef __cplusplus
45 #endif
46 #endif