Issue #7295: Do not use a hardcoded file name in test_tarfile.
[python.git] / Include / osdefs.h
blob6937659325af793133e17b5a3812f3f7bd4a6c15
1 #ifndef Py_OSDEFS_H
2 #define Py_OSDEFS_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
8 /* Operating system dependencies */
10 /* Mod by chrish: QNX has WATCOM, but isn't DOS */
11 #if !defined(__QNX__)
12 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
13 #if defined(PYOS_OS2) && defined(PYCC_GCC)
14 #define MAXPATHLEN 260
15 #define SEP '/'
16 #define ALTSEP '\\'
17 #else
18 #define SEP '\\'
19 #define ALTSEP '/'
20 #define MAXPATHLEN 256
21 #endif
22 #define DELIM ';'
23 #endif
24 #endif
26 #ifdef RISCOS
27 #define SEP '.'
28 #define MAXPATHLEN 256
29 #define DELIM ','
30 #endif
33 /* Filename separator */
34 #ifndef SEP
35 #define SEP '/'
36 #endif
38 /* Max pathname length */
39 #ifndef MAXPATHLEN
40 #if defined(PATH_MAX) && PATH_MAX > 1024
41 #define MAXPATHLEN PATH_MAX
42 #else
43 #define MAXPATHLEN 1024
44 #endif
45 #endif
47 /* Search path entry delimiter */
48 #ifndef DELIM
49 #define DELIM ':'
50 #endif
52 #ifdef __cplusplus
54 #endif
55 #endif /* !Py_OSDEFS_H */