]>
Commit | Line | Data |
---|---|---|
c8042e10 DM |
1 | #ifndef Py_OSDEFS_H\r |
2 | #define Py_OSDEFS_H\r | |
3 | #ifdef __cplusplus\r | |
4 | extern "C" {\r | |
5 | #endif\r | |
6 | \r | |
7 | \r | |
8 | /* Operating system dependencies */\r | |
9 | \r | |
10 | /* Mod by chrish: QNX has WATCOM, but isn't DOS */\r | |
11 | #if !defined(__QNX__)\r | |
12 | #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)\r | |
13 | #if defined(PYOS_OS2) && defined(PYCC_GCC)\r | |
14 | #define MAXPATHLEN 260\r | |
15 | #define SEP '/'\r | |
16 | #define ALTSEP '\\'\r | |
17 | #else\r | |
18 | #define SEP '\\'\r | |
19 | #define ALTSEP '/'\r | |
20 | #define MAXPATHLEN 256\r | |
21 | #endif\r | |
22 | #define DELIM ';'\r | |
23 | #endif\r | |
24 | #endif\r | |
25 | \r | |
26 | #ifdef RISCOS\r | |
27 | #define SEP '.'\r | |
28 | #define MAXPATHLEN 256\r | |
29 | #define DELIM ','\r | |
30 | #endif\r | |
31 | \r | |
32 | \r | |
33 | /* Filename separator */\r | |
34 | #ifndef SEP\r | |
35 | #define SEP '/'\r | |
36 | #endif\r | |
37 | \r | |
38 | /* Max pathname length */\r | |
39 | #ifdef __hpux\r | |
40 | #include <sys/param.h>\r | |
41 | #include <limits.h>\r | |
42 | #ifndef PATH_MAX\r | |
43 | #define PATH_MAX MAXPATHLEN\r | |
44 | #endif\r | |
45 | #endif\r | |
46 | \r | |
47 | #ifndef MAXPATHLEN\r | |
48 | #if defined(PATH_MAX) && PATH_MAX > 1024\r | |
49 | #define MAXPATHLEN PATH_MAX\r | |
50 | #else\r | |
51 | #define MAXPATHLEN 1024\r | |
52 | #endif\r | |
53 | #endif\r | |
54 | \r | |
55 | /* Search path entry delimiter */\r | |
56 | #ifndef DELIM\r | |
57 | #define DELIM ':'\r | |
58 | #endif\r | |
59 | \r | |
60 | #ifdef __cplusplus\r | |
61 | }\r | |
62 | #endif\r | |
63 | #endif /* !Py_OSDEFS_H */\r |