blob: b13c08d52a73e81c1d34c76deb4b5c916ca063fa [file] [log] [blame]
Guido van Rossuma3309961993-07-28 09:05:47 +00001#ifndef Py_OSDEFS_H
2#define Py_OSDEFS_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Guido van Rossum355a33d1992-02-26 15:19:31 +00007
8/* Operating system dependencies */
9
10#ifdef macintosh
11#define SEP ':'
12#define MAXPATHLEN 256
Jack Jansen234fd7e1994-12-14 12:57:12 +000013/* Mod by Jack: newline is less likely to occur in filenames than space */
14#define DELIM '\n'
Guido van Rossum355a33d1992-02-26 15:19:31 +000015#endif
16
Guido van Rossum7bf22de1997-12-02 20:34:19 +000017/* Mod by chrish: QNX has WATCOM, but isn't DOS */
18#if !defined(__QNX__)
Guido van Rossum60aff2c1997-12-05 21:39:25 +000019#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
Guido van Rossum355a33d1992-02-26 15:19:31 +000020#define SEP '\\'
Guido van Rossumc8ce5711996-09-11 20:20:58 +000021#define ALTSEP '/'
Guido van Rossum355a33d1992-02-26 15:19:31 +000022#define MAXPATHLEN 256
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000023#define DELIM ';'
Guido van Rossum355a33d1992-02-26 15:19:31 +000024#endif
Guido van Rossum7bf22de1997-12-02 20:34:19 +000025#endif
Guido van Rossum355a33d1992-02-26 15:19:31 +000026
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000027/* Filename separator */
Guido van Rossum355a33d1992-02-26 15:19:31 +000028#ifndef SEP
29#define SEP '/'
30#endif
31
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000032/* Max pathname length */
Guido van Rossum355a33d1992-02-26 15:19:31 +000033#ifndef MAXPATHLEN
34#define MAXPATHLEN 1024
35#endif
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000036
37/* Search path entry delimiter */
38#ifndef DELIM
39#define DELIM ':'
40#endif
Guido van Rossuma3309961993-07-28 09:05:47 +000041
42#ifdef __cplusplus
43}
44#endif
45#endif /* !Py_OSDEFS_H */