- Got rid of newmodule.c
[python/dscho.git] / Include / osdefs.h
blob89e0ecbaed22d7cd672655837ee78e5c41c5466d
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 #if defined(PYOS_OS2) && defined(PYCC_GCC)
21 #define MAXPATHLEN 260
22 #define SEP '/'
23 #define ALTSEP '\\'
24 #else
25 #define SEP '\\'
26 #define ALTSEP '/'
27 #define MAXPATHLEN 256
28 #endif
29 #define DELIM ';'
30 #endif
31 #endif
33 #ifdef RISCOS
34 #define SEP '.'
35 #define MAXPATHLEN 256
36 #define DELIM ','
37 #endif
40 /* Filename separator */
41 #ifndef SEP
42 #define SEP '/'
43 #endif
45 /* Max pathname length */
46 #ifndef MAXPATHLEN
47 #define MAXPATHLEN 1024
48 #endif
50 /* Search path entry delimiter */
51 #ifndef DELIM
52 #define DELIM ':'
53 #endif
55 #ifdef __cplusplus
57 #endif
58 #endif /* !Py_OSDEFS_H */