blob: 06d0e2f81da2127e1c9abf8ca6eb7bf84987c9ca [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/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00008Copyright (c) 2000, BeOpen.com.
9Copyright (c) 1995-2000, Corporation for National Research Initiatives.
10Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
11All rights reserved.
Guido van Rossum355a33d1992-02-26 15:19:31 +000012
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000013See the file "Misc/COPYRIGHT" for information on usage and
14redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossum355a33d1992-02-26 15:19:31 +000015******************************************************************/
16
17/* Operating system dependencies */
18
19#ifdef macintosh
20#define SEP ':'
21#define MAXPATHLEN 256
Jack Jansen234fd7e1994-12-14 12:57:12 +000022/* Mod by Jack: newline is less likely to occur in filenames than space */
23#define DELIM '\n'
Guido van Rossum355a33d1992-02-26 15:19:31 +000024#endif
25
Guido van Rossum7bf22de1997-12-02 20:34:19 +000026/* Mod by chrish: QNX has WATCOM, but isn't DOS */
27#if !defined(__QNX__)
Guido van Rossum60aff2c1997-12-05 21:39:25 +000028#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
Guido van Rossum355a33d1992-02-26 15:19:31 +000029#define SEP '\\'
Guido van Rossumc8ce5711996-09-11 20:20:58 +000030#define ALTSEP '/'
Guido van Rossum355a33d1992-02-26 15:19:31 +000031#define MAXPATHLEN 256
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000032#define DELIM ';'
Guido van Rossum355a33d1992-02-26 15:19:31 +000033#endif
Guido van Rossum7bf22de1997-12-02 20:34:19 +000034#endif
Guido van Rossum355a33d1992-02-26 15:19:31 +000035
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000036/* Filename separator */
Guido van Rossum355a33d1992-02-26 15:19:31 +000037#ifndef SEP
38#define SEP '/'
39#endif
40
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000041/* Max pathname length */
Guido van Rossum355a33d1992-02-26 15:19:31 +000042#ifndef MAXPATHLEN
43#define MAXPATHLEN 1024
44#endif
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000045
46/* Search path entry delimiter */
47#ifndef DELIM
48#define DELIM ':'
49#endif
Guido van Rossuma3309961993-07-28 09:05:47 +000050
51#ifdef __cplusplus
52}
53#endif
54#endif /* !Py_OSDEFS_H */