blob: df7d6f74b4eeae23d5ee3207496c699d4db211c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* 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).
*/
#ifndef Py_MACDEFS_H
#define Py_MACDEFS_H
#include <Types.h>
#include <Files.h>
#include <OSUtils.h>
#include <errno.h>
#include <string.h>
#ifdef __MWERKS__
#include "errno_unix.h"
#include <TextUtils.h>
#endif
#ifdef __cplusplus
extern "C" {
#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 *);
#ifndef USE_GUSI
extern int sync(void);
#endif
/* Universal constants: */
#define MAXPATH 256
#ifndef __MSL__
#define TRUE 1
#define FALSE 0
#endif
#ifndef NULL
#define NULL 0
#endif
#define EOS '\0'
#define SEP ':'
#ifdef __cplusplus
}
#endif
#endif
|