Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/mingw32/Python27/include/osdefs.h @ 87:2a2c65a20a8b
Add Python libs and headers
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2015 14:05:22 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
86:413a9d26189e | 87:2a2c65a20a8b |
---|---|
1 #ifndef Py_OSDEFS_H | |
2 #define Py_OSDEFS_H | |
3 #ifdef __cplusplus | |
4 extern "C" { | |
5 #endif | |
6 | |
7 | |
8 /* Operating system dependencies */ | |
9 | |
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 | |
25 | |
26 #ifdef RISCOS | |
27 #define SEP '.' | |
28 #define MAXPATHLEN 256 | |
29 #define DELIM ',' | |
30 #endif | |
31 | |
32 | |
33 /* Filename separator */ | |
34 #ifndef SEP | |
35 #define SEP '/' | |
36 #endif | |
37 | |
38 /* Max pathname length */ | |
39 #ifdef __hpux | |
40 #include <sys/param.h> | |
41 #include <limits.h> | |
42 #ifndef PATH_MAX | |
43 #define PATH_MAX MAXPATHLEN | |
44 #endif | |
45 #endif | |
46 | |
47 #ifndef MAXPATHLEN | |
48 #if defined(PATH_MAX) && PATH_MAX > 1024 | |
49 #define MAXPATHLEN PATH_MAX | |
50 #else | |
51 #define MAXPATHLEN 1024 | |
52 #endif | |
53 #endif | |
54 | |
55 /* Search path entry delimiter */ | |
56 #ifndef DELIM | |
57 #define DELIM ':' | |
58 #endif | |
59 | |
60 #ifdef __cplusplus | |
61 } | |
62 #endif | |
63 #endif /* !Py_OSDEFS_H */ |