]>
Commit | Line | Data |
---|---|---|
41b152c5 | 1 | /** @file\r |
2 | Operating system dependencies.\r | |
3 | \r | |
4 | Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials are licensed and made available under\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution.\r | |
7 | The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | **/\r | |
13 | #ifndef Py_OSDEFS_H\r | |
14 | #define Py_OSDEFS_H\r | |
15 | #ifdef __cplusplus\r | |
16 | extern "C" {\r | |
17 | #endif\r | |
18 | \r | |
19 | \r | |
20 | /* Mod by chrish: QNX has WATCOM, but isn't DOS */\r | |
b410d6e4 | 21 | #if !defined(__QNX__) && !defined(UEFI_ENV)\r |
41b152c5 | 22 | #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)\r |
23 | #if defined(PYOS_OS2) && defined(PYCC_GCC)\r | |
24 | #define MAXPATHLEN 260\r | |
25 | #define SEP '/'\r | |
26 | #define ALTSEP '\\'\r | |
27 | #else\r | |
28 | #define SEP '\\'\r | |
29 | #define ALTSEP '/'\r | |
30 | #define MAXPATHLEN 256\r | |
31 | #endif\r | |
32 | #define DELIM ';'\r | |
33 | #endif\r | |
34 | #endif\r | |
35 | \r | |
36 | #ifdef RISCOS\r | |
37 | #define SEP '.'\r | |
38 | #define MAXPATHLEN 256\r | |
39 | #define DELIM ','\r | |
40 | #endif\r | |
41 | \r | |
42 | \r | |
43 | /* Filename separator */\r | |
44 | #ifndef SEP\r | |
45 | #define SEP '/'\r | |
46 | #define ALTSEP '\\'\r | |
47 | #endif\r | |
48 | \r | |
49 | /* Max pathname length */\r | |
50 | #ifndef MAXPATHLEN\r | |
51 | #if defined(PATH_MAX) && PATH_MAX > 1024\r | |
52 | #define MAXPATHLEN PATH_MAX\r | |
53 | #else\r | |
54 | #define MAXPATHLEN 1024\r | |
55 | #endif\r | |
56 | #endif\r | |
57 | \r | |
58 | /* Search path entry delimiter */\r | |
59 | #ifndef DELIM\r | |
b410d6e4 | 60 | #ifdef UEFI_ENV\r |
41b152c5 | 61 | #define DELIM ';'\r |
b410d6e4 | 62 | #define DELIM_STR ";"\r |
41b152c5 | 63 | #else\r |
64 | #define DELIM ':'\r | |
65 | #endif\r | |
66 | #endif\r | |
67 | \r | |
68 | #ifdef __cplusplus\r | |
69 | }\r | |
70 | #endif\r | |
71 | #endif /* !Py_OSDEFS_H */\r |