Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(82)

Delta Between Two Patch Sets: Include/osdefs.h

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 9 years, 5 months ago
Right Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Include/objimpl.h ('k') | Include/pymath.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #ifndef Py_OSDEFS_H 1 #ifndef Py_OSDEFS_H
2 #define Py_OSDEFS_H 2 #define Py_OSDEFS_H
3 #ifdef __cplusplus 3 #ifdef __cplusplus
4 extern "C" { 4 extern "C" {
5 #endif 5 #endif
6 6
7 7
8 /* Operating system dependencies */ 8 /* Operating system dependencies */
9 9
10 /* Mod by chrish: QNX has WATCOM, but isn't DOS */ 10 /* Mod by chrish: QNX has WATCOM, but isn't DOS */
11 #if !defined(__QNX__) 11 #if !defined(__QNX__)
12 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defi ned(__DJGPP__) || defined(PYOS_OS2) 12 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defi ned(__DJGPP__) || defined(PYOS_OS2)
13 #if defined(PYOS_OS2) && defined(PYCC_GCC) && !defined(__MINGW32__) 13 #if defined(PYOS_OS2) && defined(PYCC_GCC)
14 #define MAXPATHLEN 260 14 #define MAXPATHLEN 260
15 #define SEP L'/' 15 #define SEP L'/'
16 #define ALTSEP L'\\' 16 #define ALTSEP L'\\'
17 #else 17 #else
18 #define SEP L'\\' 18 #define SEP L'\\'
19 #define ALTSEP L'/' 19 #define ALTSEP L'/'
20 #ifndef MAXPATHLEN /* MinGW defines MAXPATHLEN in sys/param.h */ 20 #ifndef MAXPATHLEN
21 #define MAXPATHLEN 256 21 #define MAXPATHLEN 256
22 #endif 22 #endif
23 #endif 23 #endif
24 #define DELIM L';' 24 #define DELIM L';'
25 #endif 25 #endif
26 #endif 26 #endif
27 27
28 /* Filename separator */ 28 /* Filename separator */
29 #ifndef SEP 29 #ifndef SEP
30 #define SEP L'/' 30 #define SEP L'/'
31 #endif 31 #endif
32 32
33 /* Max pathname length */ 33 /* Max pathname length */
34 #ifdef __hpux
35 #include <sys/param.h>
36 #include <limits.h>
37 #ifndef PATH_MAX
38 #define PATH_MAX MAXPATHLEN
39 #endif
40 #endif
41
34 #ifndef MAXPATHLEN 42 #ifndef MAXPATHLEN
35 #if defined(PATH_MAX) && PATH_MAX > 1024 43 #if defined(PATH_MAX) && PATH_MAX > 1024
36 #define MAXPATHLEN PATH_MAX 44 #define MAXPATHLEN PATH_MAX
37 #else 45 #else
38 #define MAXPATHLEN 1024 46 #define MAXPATHLEN 1024
39 #endif 47 #endif
40 #endif 48 #endif
41 49
42 /* Search path entry delimiter */ 50 /* Search path entry delimiter */
43 #ifndef DELIM 51 #ifndef DELIM
44 #define DELIM L':' 52 #define DELIM L':'
45 #endif 53 #endif
46 54
47 #ifdef __cplusplus 55 #ifdef __cplusplus
48 } 56 }
49 #endif 57 #endif
50 #endif /* !Py_OSDEFS_H */ 58 #endif /* !Py_OSDEFS_H */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+