1 | #ifndef Py_CONFIG_H
|
---|
2 | #define Py_CONFIG_H
|
---|
3 |
|
---|
4 | /* config.h.
|
---|
5 | * At some time in the past, generated automatically by/from configure.
|
---|
6 | * now maintained manually.
|
---|
7 | */
|
---|
8 |
|
---|
9 | /* build environment */
|
---|
10 | #define PLATFORM "os2emx"
|
---|
11 | #define COMPILER "[EMX GCC " __VERSION__ "]"
|
---|
12 | #define PYOS_OS2 1
|
---|
13 | #define PYCC_GCC 1
|
---|
14 |
|
---|
15 | /* default location(s) */
|
---|
16 | #ifndef PREFIX
|
---|
17 | #define PREFIX ""
|
---|
18 | #endif
|
---|
19 | #ifndef PYTHONPATH
|
---|
20 | #define PYTHONPATH "./Lib;./Lib/plat-" PLATFORM \
|
---|
21 | ";./Lib/lib-dynload;./Lib/site-packages"
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* Debugging */
|
---|
25 | #ifndef Py_DEBUG
|
---|
26 | /*#define Py_DEBUG 1*/
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | /* if building an extension or wrapper executable,
|
---|
30 | * mark Python API symbols "extern" so that symbols
|
---|
31 | * imported from the Python core DLL aren't duplicated.
|
---|
32 | */
|
---|
33 | #ifdef Py_BUILD_CORE
|
---|
34 | # define PyAPI_FUNC(RTYPE) RTYPE
|
---|
35 | #else
|
---|
36 | # define PyAPI_FUNC(RTYPE) extern RTYPE
|
---|
37 | #endif
|
---|
38 | #define PyAPI_DATA(RTYPE) extern RTYPE
|
---|
39 | #define PyMODINIT_FUNC void
|
---|
40 |
|
---|
41 | /* Use OS/2 flavour of threads */
|
---|
42 | #define WITH_THREAD 1
|
---|
43 | #define OS2_THREADS 1
|
---|
44 |
|
---|
45 | /* We want sockets */
|
---|
46 | #define TCPIPV4 1
|
---|
47 | #define USE_SOCKET 1
|
---|
48 | #define socklen_t int
|
---|
49 | #define FD_SETSIZE 1024
|
---|
50 |
|
---|
51 | /* enable the Python object allocator */
|
---|
52 | #define WITH_PYMALLOC 1
|
---|
53 |
|
---|
54 | /* enable the GC module */
|
---|
55 | #define WITH_CYCLE_GC 1
|
---|
56 |
|
---|
57 | /* Define if you want documentation strings in extension modules */
|
---|
58 | #define WITH_DOC_STRINGS 1
|
---|
59 |
|
---|
60 | /* Unicode related */
|
---|
61 | #define Py_USING_UNICODE 1
|
---|
62 | #define PY_UNICODE_TYPE wchar_t
|
---|
63 | #define Py_UNICODE_SIZE SIZEOF_SHORT
|
---|
64 |
|
---|
65 | /* EMX defines ssize_t */
|
---|
66 | #define HAVE_SSIZE_T 1
|
---|
67 |
|
---|
68 | /* system capabilities */
|
---|
69 | #define HAVE_TTYNAME 1
|
---|
70 | #define HAVE_WAIT 1
|
---|
71 | #define HAVE_GETEGID 1
|
---|
72 | #define HAVE_GETEUID 1
|
---|
73 | #define HAVE_GETGID 1
|
---|
74 | #define HAVE_GETPPID 1
|
---|
75 | #define HAVE_GETUID 1
|
---|
76 | #define HAVE_OPENDIR 1
|
---|
77 | #define HAVE_PIPE 1
|
---|
78 | #define HAVE_POPEN 1
|
---|
79 | #define HAVE_SYSTEM 1
|
---|
80 | #define HAVE_TTYNAME 1
|
---|
81 | #define HAVE_DYNAMIC_LOADING 1
|
---|
82 |
|
---|
83 | /* if port of GDBM installed, it includes NDBM emulation */
|
---|
84 | #define HAVE_NDBM_H 1
|
---|
85 |
|
---|
86 | /* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
|
---|
87 | typedef long intptr_t;
|
---|
88 |
|
---|
89 | /* we don't have tm_zone but do have the external array tzname */
|
---|
90 | #define HAVE_TZNAME 1
|
---|
91 |
|
---|
92 | /* Define as the return type of signal handlers (int or void). */
|
---|
93 | #define RETSIGTYPE void
|
---|
94 |
|
---|
95 | /* Define if you have the ANSI C header files. */
|
---|
96 | #define STDC_HEADERS 1
|
---|
97 |
|
---|
98 | /* Define if you can safely include both <sys/time.h> and <time.h>. */
|
---|
99 | #define TIME_WITH_SYS_TIME 1
|
---|
100 |
|
---|
101 | /* Define this if you have the type long long. */
|
---|
102 | #define HAVE_LONG_LONG 1
|
---|
103 |
|
---|
104 | /* Define if your compiler supports function prototypes. */
|
---|
105 | #define HAVE_PROTOTYPES 1
|
---|
106 |
|
---|
107 | /* Define if your compiler supports variable length function prototypes
|
---|
108 | * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
|
---|
109 | */
|
---|
110 | #define HAVE_STDARG_PROTOTYPES 1
|
---|
111 |
|
---|
112 | /* Define if malloc(0) returns a NULL pointer. */
|
---|
113 | #define MALLOC_ZERO_RETURNS_NULL 1
|
---|
114 |
|
---|
115 | /* Define to force use of thread-safe errno, h_errno, and other functions. */
|
---|
116 | #define _REENTRANT 1
|
---|
117 |
|
---|
118 | /* Define if you can safely include both <sys/select.h> and <sys/time.h>
|
---|
119 | * (which you can't on SCO ODT 3.0).
|
---|
120 | */
|
---|
121 | #define SYS_SELECT_WITH_SYS_TIME 1
|
---|
122 |
|
---|
123 | /* The number of bytes in an off_t. */
|
---|
124 | #define SIZEOF_OFF_T 4
|
---|
125 |
|
---|
126 | /* The number of bytes in an time_t. */
|
---|
127 | #define SIZEOF_TIME_T 4
|
---|
128 |
|
---|
129 | /* The number of bytes in a short. */
|
---|
130 | #define SIZEOF_SHORT 2
|
---|
131 |
|
---|
132 | /* The number of bytes in a int. */
|
---|
133 | #define SIZEOF_INT 4
|
---|
134 |
|
---|
135 | /* The number of bytes in a long. */
|
---|
136 | #define SIZEOF_LONG 4
|
---|
137 |
|
---|
138 | /* The number of bytes in a long long. */
|
---|
139 | #define SIZEOF_LONG_LONG 8
|
---|
140 |
|
---|
141 | /* The number of bytes in a void *. */
|
---|
142 | #define SIZEOF_VOID_P 4
|
---|
143 |
|
---|
144 | /* The number of bytes in a size_t. */
|
---|
145 | #define SIZEOF_SIZE_T 4
|
---|
146 |
|
---|
147 | /* Define if you have the alarm function. */
|
---|
148 | #define HAVE_ALARM 1
|
---|
149 |
|
---|
150 | /* Define if you have the clock function. */
|
---|
151 | #define HAVE_CLOCK 1
|
---|
152 |
|
---|
153 | /* Define if you have the dup2 function. */
|
---|
154 | #define HAVE_DUP2 1
|
---|
155 |
|
---|
156 | /* Define if you have the execv function. */
|
---|
157 | #define HAVE_EXECV 1
|
---|
158 |
|
---|
159 | /* Define if you have the spawnv function. */
|
---|
160 | #define HAVE_SPAWNV 1
|
---|
161 |
|
---|
162 | /* Define if you have the flock function. */
|
---|
163 | #define HAVE_FLOCK 1
|
---|
164 |
|
---|
165 | /* Define if you have the fork function. */
|
---|
166 | #define HAVE_FORK 1
|
---|
167 |
|
---|
168 | /* Define if you have the fsync function. */
|
---|
169 | #define HAVE_FSYNC 1
|
---|
170 |
|
---|
171 | /* Define if you have the ftime function. */
|
---|
172 | #define HAVE_FTIME 1
|
---|
173 |
|
---|
174 | /* Define if you have the ftruncate function. */
|
---|
175 | #define HAVE_FTRUNCATE 1
|
---|
176 |
|
---|
177 | /* Define if you have the getcwd function. */
|
---|
178 | #define HAVE_GETCWD 1
|
---|
179 |
|
---|
180 | /* Define if you have the getpeername function. */
|
---|
181 | #define HAVE_GETPEERNAME 1
|
---|
182 |
|
---|
183 | /* Define if you have the getpgrp function. */
|
---|
184 | #define HAVE_GETPGRP 1
|
---|
185 |
|
---|
186 | /* Define if you have the getpid function. */
|
---|
187 | #define HAVE_GETPID 1
|
---|
188 |
|
---|
189 | /* Define if you have the getpwent function. */
|
---|
190 | #define HAVE_GETPWENT 1
|
---|
191 |
|
---|
192 | /* Define if you have the gettimeofday function. */
|
---|
193 | #define HAVE_GETTIMEOFDAY 1
|
---|
194 |
|
---|
195 | /* Define if you have the getwd function. */
|
---|
196 | #define HAVE_GETWD 1
|
---|
197 |
|
---|
198 | /* Define if you have the hypot function. */
|
---|
199 | #define HAVE_HYPOT 1
|
---|
200 |
|
---|
201 | /* Define if you have the kill function. */
|
---|
202 | #define HAVE_KILL 1
|
---|
203 |
|
---|
204 | /* Define if you have the memmove function. */
|
---|
205 | #define HAVE_MEMMOVE 1
|
---|
206 |
|
---|
207 | /* Define if you have the mktime function. */
|
---|
208 | #define HAVE_MKTIME 1
|
---|
209 |
|
---|
210 | /* Define if you have the pause function. */
|
---|
211 | #define HAVE_PAUSE 1
|
---|
212 |
|
---|
213 | /* Define if you have the putenv function. */
|
---|
214 | #define HAVE_PUTENV 1
|
---|
215 |
|
---|
216 | /* Define if you have the select function. */
|
---|
217 | #define HAVE_SELECT 1
|
---|
218 |
|
---|
219 | /* Define if you have the setgid function. */
|
---|
220 | #define HAVE_SETGID 1
|
---|
221 |
|
---|
222 | /* Define if you have the setlocale function. */
|
---|
223 | #define HAVE_SETLOCALE 1
|
---|
224 |
|
---|
225 | /* Define if you have the setpgid function. */
|
---|
226 | #define HAVE_SETPGID 1
|
---|
227 |
|
---|
228 | /* Define if you have the setuid function. */
|
---|
229 | #define HAVE_SETUID 1
|
---|
230 |
|
---|
231 | /* Define if you have the setvbuf function. */
|
---|
232 | #define HAVE_SETVBUF 1
|
---|
233 |
|
---|
234 | /* Define if you have the sigaction function. */
|
---|
235 | #define HAVE_SIGACTION 1
|
---|
236 |
|
---|
237 | /* Define if you have the strerror function. */
|
---|
238 | #define HAVE_STRERROR 1
|
---|
239 |
|
---|
240 | /* Define if you have the strftime function. */
|
---|
241 | #define HAVE_STRFTIME 1
|
---|
242 |
|
---|
243 | /* Define if you have the tcgetpgrp function. */
|
---|
244 | #define HAVE_TCGETPGRP 1
|
---|
245 |
|
---|
246 | /* Define if you have the tcsetpgrp function. */
|
---|
247 | #define HAVE_TCSETPGRP 1
|
---|
248 |
|
---|
249 | /* Define if you have the tmpfile function. */
|
---|
250 | #define HAVE_TMPFILE 1
|
---|
251 |
|
---|
252 | /* Define if you have the times function. */
|
---|
253 | #define HAVE_TIMES 1
|
---|
254 |
|
---|
255 | /* Define if you have the truncate function. */
|
---|
256 | #define HAVE_TRUNCATE 1
|
---|
257 |
|
---|
258 | /* Define if you have the uname function. */
|
---|
259 | #define HAVE_UNAME 1
|
---|
260 |
|
---|
261 | /* Define if you have the waitpid function. */
|
---|
262 | #define HAVE_WAITPID 1
|
---|
263 |
|
---|
264 | /* Define if you have the <conio.h> header file. */
|
---|
265 | #undef HAVE_CONIO_H
|
---|
266 |
|
---|
267 | /* Define if you have the <direct.h> header file. */
|
---|
268 | #undef HAVE_DIRECT_H
|
---|
269 |
|
---|
270 | /* Define if you have the <dirent.h> header file. */
|
---|
271 | #define HAVE_DIRENT_H 1
|
---|
272 |
|
---|
273 | /* Define if you have the <errno.h> header file. */
|
---|
274 | #define HAVE_ERRNO_H 1
|
---|
275 |
|
---|
276 | /* Define if you have the <fcntl.h> header file. */
|
---|
277 | #define HAVE_FCNTL_H 1
|
---|
278 |
|
---|
279 | /* Define if you have the <io.h> header file. */
|
---|
280 | #undef HAVE_IO_H
|
---|
281 |
|
---|
282 | /* Define if you have the <ncurses.h> header file. */
|
---|
283 | #define HAVE_NCURSES_H 1
|
---|
284 |
|
---|
285 | /* Define to 1 if you have the <process.h> header file. */
|
---|
286 | #define HAVE_PROCESS_H 1
|
---|
287 |
|
---|
288 | /* Define if you have the <signal.h> header file. */
|
---|
289 | #define HAVE_SIGNAL_H 1
|
---|
290 |
|
---|
291 | /* Define if you have the <sys/file.h> header file. */
|
---|
292 | #define HAVE_SYS_FILE_H 1
|
---|
293 |
|
---|
294 | /* Define if you have the <sys/param.h> header file. */
|
---|
295 | #define HAVE_SYS_PARAM_H 1
|
---|
296 |
|
---|
297 | /* Define if you have the <sys/select.h> header file. */
|
---|
298 | #define HAVE_SYS_SELECT_H 1
|
---|
299 |
|
---|
300 | /* Define if you have the <sys/stat.h> header file. */
|
---|
301 | #define HAVE_SYS_STAT_H 1
|
---|
302 |
|
---|
303 | /* Define if you have the <sys/time.h> header file. */
|
---|
304 | #define HAVE_SYS_TIME_H 1
|
---|
305 |
|
---|
306 | /* Define if you have the <sys/times.h> header file. */
|
---|
307 | #define HAVE_SYS_TIMES_H 1
|
---|
308 |
|
---|
309 | /* Define if you have the <sys/types.h> header file. */
|
---|
310 | #define HAVE_SYS_TYPES_H 1
|
---|
311 |
|
---|
312 | /* Define if you have the <sys/un.h> header file. */
|
---|
313 | #define HAVE_SYS_UN_H 1
|
---|
314 |
|
---|
315 | /* Define if you have the <sys/utsname.h> header file. */
|
---|
316 | #define HAVE_SYS_UTSNAME_H 1
|
---|
317 |
|
---|
318 | /* Define if you have the <sys/wait.h> header file. */
|
---|
319 | #define HAVE_SYS_WAIT_H 1
|
---|
320 |
|
---|
321 | /* Define if you have the <unistd.h> header file. */
|
---|
322 | #define HAVE_UNISTD_H 1
|
---|
323 |
|
---|
324 | /* Define if you have the <utime.h> header file. */
|
---|
325 | #define HAVE_UTIME_H 1
|
---|
326 |
|
---|
327 | /* EMX has an snprintf(). */
|
---|
328 | #define HAVE_SNPRINTF 1
|
---|
329 |
|
---|
330 | #endif /* !Py_CONFIG_H */
|
---|
331 |
|
---|