osdefs.h 903 Bytes
Newer Older
1 2 3 4 5 6
#ifndef Py_OSDEFS_H
#define Py_OSDEFS_H
#ifdef __cplusplus
extern "C" {
#endif

Guido van Rossum's avatar
Guido van Rossum committed
7 8 9 10 11 12

/* Operating system dependencies */

#ifdef macintosh
#define SEP ':'
#define MAXPATHLEN 256
13 14
/* Mod by Jack: newline is less likely to occur in filenames than space */
#define DELIM '\n'
Guido van Rossum's avatar
Guido van Rossum committed
15 16
#endif

17 18
/* Mod by chrish: QNX has WATCOM, but isn't DOS */
#if !defined(__QNX__)
19
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
Guido van Rossum's avatar
Guido van Rossum committed
20
#define SEP '\\'
21
#define ALTSEP '/'
Guido van Rossum's avatar
Guido van Rossum committed
22
#define MAXPATHLEN 256
23
#define DELIM ';'
Guido van Rossum's avatar
Guido van Rossum committed
24
#endif
25
#endif
Guido van Rossum's avatar
Guido van Rossum committed
26

27 28 29 30 31 32 33
#ifdef RISCOS
#define SEP '.'
#define MAXPATHLEN 256
#define DELIM ','
#endif


34
/* Filename separator */
Guido van Rossum's avatar
Guido van Rossum committed
35 36 37 38
#ifndef SEP
#define SEP '/'
#endif

39
/* Max pathname length */
Guido van Rossum's avatar
Guido van Rossum committed
40 41 42
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
43 44 45 46 47

/* Search path entry delimiter */
#ifndef DELIM
#define DELIM ':'
#endif
48 49 50 51 52

#ifdef __cplusplus
}
#endif
#endif /* !Py_OSDEFS_H */