blob: c84043f6fb49752cf2bd9f94fbdef6a6215bf3aa [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 Rossumb6775db1994-08-01 11:34:53 +00008Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
Guido van Rossum9bfef441993-03-29 10:43:31 +00009Amsterdam, The Netherlands.
Guido van Rossum355a33d1992-02-26 15:19:31 +000010
11 All Rights Reserved
12
13Permission to use, copy, modify, and distribute this software and its
14documentation for any purpose and without fee is hereby granted,
15provided that the above copyright notice appear in all copies and that
16both that copyright notice and this permission notice appear in
17supporting documentation, and that the names of Stichting Mathematisch
18Centrum or CWI not be used in advertising or publicity pertaining to
19distribution of the software without specific, written prior permission.
20
21STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
22THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
23FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
24FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
25WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
26ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
27OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28
29******************************************************************/
30
31/* Operating system dependencies */
32
33#ifdef macintosh
34#define SEP ':'
35#define MAXPATHLEN 256
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000036#define DELIM ' '
Guido van Rossum355a33d1992-02-26 15:19:31 +000037#endif
38
Guido van Rossumb6775db1994-08-01 11:34:53 +000039#if defined(MSDOS) || defined(NT)
Guido van Rossum355a33d1992-02-26 15:19:31 +000040#define SEP '\\'
41#define MAXPATHLEN 256
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000042#define DELIM ';'
Guido van Rossum355a33d1992-02-26 15:19:31 +000043#endif
44
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000045/* Filename separator */
Guido van Rossum355a33d1992-02-26 15:19:31 +000046#ifndef SEP
47#define SEP '/'
48#endif
49
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000050/* Max pathname length */
Guido van Rossum355a33d1992-02-26 15:19:31 +000051#ifndef MAXPATHLEN
52#define MAXPATHLEN 1024
53#endif
Guido van Rossum9b9ccd31992-03-23 18:20:32 +000054
55/* Search path entry delimiter */
56#ifndef DELIM
57#define DELIM ':'
58#endif
Guido van Rossuma3309961993-07-28 09:05:47 +000059
60#ifdef __cplusplus
61}
62#endif
63#endif /* !Py_OSDEFS_H */