py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Include / osdefs.h
blob7a382ce824397ab0e0c8cb7312136019dc4fa1a2
1 #ifndef Py_OSDEFS_H
2 #define Py_OSDEFS_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
8 /* Operating system dependencies */
10 #ifdef macintosh
11 #define SEP ':'
12 #define MAXPATHLEN 256
13 /* Mod by Jack: newline is less likely to occur in filenames than space */
14 #define DELIM '\n'
15 #endif
17 /* Mod by chrish: QNX has WATCOM, but isn't DOS */
18 #if !defined(__QNX__)
19 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
20 #define SEP '\\'
21 #define ALTSEP '/'
22 #define MAXPATHLEN 256
23 #define DELIM ';'
24 #endif
25 #endif
27 #ifdef RISCOS
28 #define SEP '.'
29 #define MAXPATHLEN 256
30 #define DELIM ','
31 #endif
34 /* Filename separator */
35 #ifndef SEP
36 #define SEP '/'
37 #endif
39 /* Max pathname length */
40 #ifndef MAXPATHLEN
41 #define MAXPATHLEN 1024
42 #endif
44 /* Search path entry delimiter */
45 #ifndef DELIM
46 #define DELIM ':'
47 #endif
49 #ifdef __cplusplus
51 #endif
52 #endif /* !Py_OSDEFS_H */