pyconfig.h revision 4ee893fe39f11aca1cfcf7472c95c10e61d4aedd
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
50/* enable the Python object allocator */
51#define	WITH_PYMALLOC	1
52
53/* enable the GC module */
54#define WITH_CYCLE_GC	1
55
56/* Define if you want to read files with foreign newlines. */
57#define WITH_UNIVERSAL_NEWLINES 1
58
59/* Define if you want documentation strings in extension modules */
60#define WITH_DOC_STRINGS 1
61
62/* Unicode related */
63#define Py_USING_UNICODE 1
64#define PY_UNICODE_TYPE	wchar_t
65#define Py_UNICODE_SIZE SIZEOF_SHORT
66
67/* system capabilities */
68#define HAVE_TTYNAME	1
69#define HAVE_WAIT	1
70#define HAVE_GETEGID    1
71#define HAVE_GETEUID    1
72#define HAVE_GETGID     1
73#define HAVE_GETPPID    1
74#define HAVE_GETUID     1
75#define HAVE_OPENDIR    1
76#define HAVE_PIPE       1
77#define HAVE_POPEN      1
78#define HAVE_SYSTEM	1
79#define HAVE_TTYNAME	1
80#define HAVE_DYNAMIC_LOADING	1
81
82/* if port of GDBM installed, it includes NDBM emulation */
83#define HAVE_NDBM_H 1
84
85/* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
86typedef long intptr_t;
87
88/* we don't have tm_zone but do have the external array tzname */
89#define HAVE_TZNAME 1
90
91/* Define as the return type of signal handlers (int or void). */
92#define RETSIGTYPE void
93
94/* Define if you have the ANSI C header files. */
95#define STDC_HEADERS 1
96
97/* Define if you can safely include both <sys/time.h> and <time.h>. */
98#define TIME_WITH_SYS_TIME 1
99
100/* Define this if you have the type long long. */
101#define HAVE_LONG_LONG 1
102
103/* Define if your compiler supports function prototypes. */
104#define HAVE_PROTOTYPES 1
105
106/* Define if your compiler supports variable length function prototypes
107 * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
108 */
109#define HAVE_STDARG_PROTOTYPES 1
110
111/* Define if malloc(0) returns a NULL pointer. */
112#define MALLOC_ZERO_RETURNS_NULL 1
113
114/* Define to force use of thread-safe errno, h_errno, and other functions. */
115#define _REENTRANT 1
116
117/* Define if you can safely include both <sys/select.h> and <sys/time.h>
118 * (which you can't on SCO ODT 3.0).
119 */
120#define SYS_SELECT_WITH_SYS_TIME 1
121
122/* The number of bytes in an off_t. */
123#define SIZEOF_OFF_T 4
124
125/* The number of bytes in an time_t. */
126#define SIZEOF_TIME_T 4
127
128/* The number of bytes in a short. */
129#define SIZEOF_SHORT 2
130
131/* The number of bytes in a int. */
132#define SIZEOF_INT 4
133
134/* The number of bytes in a long. */
135#define SIZEOF_LONG 4
136
137/* The number of bytes in a long long. */
138#define SIZEOF_LONG_LONG 8
139
140/* The number of bytes in a void *. */
141#define SIZEOF_VOID_P 4
142
143/* Define if you have the alarm function. */
144#define HAVE_ALARM 1
145
146/* Define if you have the clock function. */
147#define HAVE_CLOCK 1
148
149/* Define if you have the dup2 function. */
150#define HAVE_DUP2 1
151
152/* Define if you have the execv function. */
153#define HAVE_EXECV 1
154
155/* Define if you have the spawnv function. */
156#define HAVE_SPAWNV 1
157
158/* Define if you have the flock function. */
159#define HAVE_FLOCK 1
160
161/* Define if you have the fork function. */
162#define HAVE_FORK 1
163
164/* Define if you have the fsync function. */
165#define HAVE_FSYNC 1
166
167/* Define if you have the ftime function. */
168#define HAVE_FTIME 1
169
170/* Define if you have the ftruncate function. */
171#define HAVE_FTRUNCATE 1
172
173/* Define if you have the getcwd function. */
174#define HAVE_GETCWD 1
175
176/* Define if you have the getpeername function. */
177#define HAVE_GETPEERNAME 1
178
179/* Define if you have the getpgrp function. */
180#define HAVE_GETPGRP 1
181
182/* Define if you have the getpid function. */
183#define HAVE_GETPID 1
184
185/* Define if you have the getpwent function. */
186#define HAVE_GETPWENT 1
187
188/* Define if you have the gettimeofday function. */
189#define HAVE_GETTIMEOFDAY 1
190
191/* Define if you have the getwd function. */
192#define HAVE_GETWD 1
193
194/* Define if you have the hypot function. */
195#define HAVE_HYPOT 1
196
197/* Define if you have the kill function. */
198#define HAVE_KILL 1
199
200/* Define if you have the memmove function. */
201#define HAVE_MEMMOVE 1
202
203/* Define if you have the mktime function. */
204#define HAVE_MKTIME 1
205
206/* Define if you have the pause function. */
207#define HAVE_PAUSE 1
208
209/* Define if you have the putenv function. */
210#define HAVE_PUTENV 1
211
212/* Define if you have the select function. */
213#define HAVE_SELECT 1
214
215/* Define if you have the setgid function. */
216#define HAVE_SETGID 1
217
218/* Define if you have the setlocale function. */
219#define HAVE_SETLOCALE 1
220
221/* Define if you have the setpgid function. */
222#define HAVE_SETPGID 1
223
224/* Define if you have the setuid function. */
225#define HAVE_SETUID 1
226
227/* Define if you have the setvbuf function. */
228#define HAVE_SETVBUF 1
229
230/* Define if you have the sigaction function. */
231#define HAVE_SIGACTION 1
232
233/* Define if you have the strdup function. */
234#define HAVE_STRDUP 1
235
236/* Define if you have the strerror function. */
237#define HAVE_STRERROR 1
238
239/* Define if you have the strftime function. */
240#define HAVE_STRFTIME 1
241
242/* Define if you have the strptime function. */
243#define HAVE_STRPTIME 1
244
245/* Define if you have the tcgetpgrp function. */
246#define HAVE_TCGETPGRP 1
247
248/* Define if you have the tcsetpgrp function. */
249#define HAVE_TCSETPGRP 1
250
251/* Define if you have the tmpfile function.  */
252#define HAVE_TMPFILE 1
253
254/* Define if you have the times function. */
255#define HAVE_TIMES 1
256
257/* Define if you have the truncate function. */
258#define HAVE_TRUNCATE 1
259
260/* Define if you have the uname function. */
261#define HAVE_UNAME 1
262
263/* Define if you have the waitpid function. */
264#define HAVE_WAITPID 1
265
266/* Define if you have the <dirent.h> header file. */
267#define HAVE_DIRENT_H 1
268
269/* Define if you have the <fcntl.h> header file. */
270#define HAVE_FCNTL_H 1
271
272/* Define if you have the <limits.h> header file. */
273#define HAVE_LIMITS_H 1
274
275/* Define if you have the <locale.h> header file. */
276#define HAVE_LOCALE_H 1
277
278/* Define if you have the <ncurses.h> header file. */
279#define HAVE_NCURSES_H 1
280
281/* Define if you have the <signal.h> header file. */
282#define HAVE_SIGNAL_H 1
283
284/* Define if you have the <stdarg.h> header file. */
285#define HAVE_STDARG_H 1
286
287/* Define if you have the <stddef.h> header file. */
288#define HAVE_STDDEF_H 1
289
290/* Define if you have the <stdlib.h> header file. */
291#define HAVE_STDLIB_H 1
292
293/* Define if you have the <sys/file.h> header file. */
294#define HAVE_SYS_FILE_H 1
295
296/* Define if you have the <sys/param.h> header file. */
297#define HAVE_SYS_PARAM_H 1
298
299/* Define if you have the <sys/select.h> header file. */
300#define HAVE_SYS_SELECT_H 1
301
302/* Define if you have the <sys/time.h> header file. */
303#define HAVE_SYS_TIME_H 1
304
305/* Define if you have the <sys/times.h> header file. */
306#define HAVE_SYS_TIMES_H 1
307
308/* Define if you have the <sys/un.h> header file. */
309#define HAVE_SYS_UN_H 1
310
311/* Define if you have the <sys/utsname.h> header file. */
312#define HAVE_SYS_UTSNAME_H 1
313
314/* Define if you have the <sys/wait.h> header file. */
315#define HAVE_SYS_WAIT_H 1
316
317/* Define if you have the <unistd.h> header file. */
318#define HAVE_UNISTD_H 1
319
320/* Define if you have the <utime.h> header file. */
321#define HAVE_UTIME_H 1
322
323/* EMX has an snprintf(). */
324#define HAVE_SNPRINTF 1
325
326#endif /* !Py_CONFIG_H */
327
328