File tree 1 file changed +27
-21
lines changed
1 file changed +27
-21
lines changed Original file line number Diff line number Diff line change
1
+ // Operating system dependencies.
2
+ //
3
+ // Define constants:
4
+ //
5
+ // - ALTSEP
6
+ // - DELIM
7
+ // - MAXPATHLEN
8
+ // - SEP
9
+
1
10
#ifndef Py_OSDEFS_H
2
11
#define Py_OSDEFS_H
3
12
#ifdef __cplusplus
4
13
extern "C" {
5
14
#endif
6
15
7
-
8
- /* Operating system dependencies */
9
-
10
16
#ifdef MS_WINDOWS
11
- #define SEP L'\\'
12
- #define ALTSEP L'/'
13
- #define MAXPATHLEN 256
14
- #define DELIM L';'
17
+ # define SEP L'\\'
18
+ # define ALTSEP L'/'
19
+ # define MAXPATHLEN 256
20
+ # define DELIM L';'
15
21
#endif
16
22
17
23
#ifdef __VXWORKS__
18
- #define DELIM L';'
24
+ # define DELIM L';'
19
25
#endif
20
26
21
27
/* Filename separator */
22
28
#ifndef SEP
23
- #define SEP L'/'
29
+ # define SEP L'/'
24
30
#endif
25
31
26
32
/* Max pathname length */
27
33
#ifdef __hpux
28
- #include <sys/param.h>
29
- #include <limits.h>
30
- #ifndef PATH_MAX
31
- #define PATH_MAX MAXPATHLEN
32
- #endif
34
+ # include <sys/param.h>
35
+ # include <limits.h>
36
+ # ifndef PATH_MAX
37
+ # define PATH_MAX MAXPATHLEN
38
+ # endif
33
39
#endif
34
40
35
41
#ifndef MAXPATHLEN
36
- #if defined(PATH_MAX ) && PATH_MAX > 1024
37
- #define MAXPATHLEN PATH_MAX
38
- #else
39
- #define MAXPATHLEN 1024
40
- #endif
42
+ # if defined(PATH_MAX ) && PATH_MAX > 1024
43
+ # define MAXPATHLEN PATH_MAX
44
+ # else
45
+ # define MAXPATHLEN 1024
46
+ # endif
41
47
#endif
42
48
43
49
/* Search path entry delimiter */
44
50
#ifndef DELIM
45
- #define DELIM L':'
51
+ # define DELIM L':'
46
52
#endif
47
53
48
54
#ifdef __cplusplus
49
55
}
50
56
#endif
51
- #endif /* !Py_OSDEFS_H */
57
+ #endif // !Py_OSDEFS_H
You can’t perform that action at this time.
0 commit comments