blob: 37af08df4d6dcacff6415b188cab63bc995dc6bc [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 Rossum5799b521995-01-04 19:06:22 +00008Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
9The Netherlands.
Guido van Rossum355a33d1992-02-26 15:19:31 +000010
11 All Rights Reserved
12
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000013Copyright (c) 2000, BeOpen.com.
14Copyright (c) 1995-2000, Corporation for National Research Initiatives.
15Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
16All rights reserved.
Guido van Rossum355a33d1992-02-26 15:19:31 +000017
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000018See the file "Misc/COPYRIGHT" for information on usage and
19redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossum355a33d1992-02-26 15:19:31 +000020
21******************************************************************/
22
23/* Operating system dependencies */
24
25#ifdef macintosh
26#define SEP ':'
27#define MAXPATHLEN 256
Jack Jansen234fd7e1994-12-14 12:57:12 +000028/* Mod by Jack: newline is less likely to occur in filenames than space */
29#define DELIM '\n'
Guido van Rossum355a33d1992-02-26 15:19:31 +000030#endif
31
Guido van Rossum7bf22de1997-12-02 20:34:19 +000032/* Mod by chrish: QNX has WATCOM, but isn't DOS */
33#if !defined(__QNX__)
Guido van Rossum60aff2c1997-12-05 21:39:25 +000034#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
Guido van Rossum355a33d1992-02-26 15:19:31 +000035#define SEP '\\'
Guido van Rossumc8ce5711996-09-11 20:20:58 +000036#define ALTSEP '/'
Guido van Rossum355a33d1992-02-26 15:19:31 +000037#define MAXPATHLEN 256
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000038#define DELIM ';'
Guido van Rossum355a33d1992-02-26 15:19:31 +000039#endif
Guido van Rossum7bf22de1997-12-02 20:34:19 +000040#endif
Guido van Rossum355a33d1992-02-26 15:19:31 +000041
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000042/* Filename separator */
Guido van Rossum355a33d1992-02-26 15:19:31 +000043#ifndef SEP
44#define SEP '/'
45#endif
46
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000047/* Max pathname length */
Guido van Rossum355a33d1992-02-26 15:19:31 +000048#ifndef MAXPATHLEN
49#define MAXPATHLEN 1024
50#endif
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000051
52/* Search path entry delimiter */
53#ifndef DELIM
54#define DELIM ':'
55#endif
Guido van Rossuma3309961993-07-28 09:05:47 +000056
57#ifdef __cplusplus
58}
59#endif
60#endif /* !Py_OSDEFS_H */