Add better error reporting for MemoryErrors caused by str->float conversions.
[python.git] / PC / os2emx / pyconfig.h
blob13910dc364c11afd44f7a09ebb0a00b612af8bf5
1 #ifndef Py_CONFIG_H
2 #define Py_CONFIG_H
4 /* config.h.
5 * At some time in the past, generated automatically by/from configure.
6 * now maintained manually.
7 */
9 /* build environment */
10 #define PLATFORM "os2emx"
11 #define COMPILER "[EMX GCC " __VERSION__ "]"
12 #define PYOS_OS2 1
13 #define PYCC_GCC 1
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
24 /* Debugging */
25 #ifndef Py_DEBUG
26 /*#define Py_DEBUG 1*/
27 #endif
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.
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
41 /* Use OS/2 flavour of threads */
42 #define WITH_THREAD 1
43 #define OS2_THREADS 1
45 /* We want sockets */
46 #define TCPIPV4 1
47 #define USE_SOCKET 1
48 #define socklen_t int
49 #define FD_SETSIZE 1024
51 /* enable the Python object allocator */
52 #define WITH_PYMALLOC 1
54 /* enable the GC module */
55 #define WITH_CYCLE_GC 1
57 /* Define if you want documentation strings in extension modules */
58 #define WITH_DOC_STRINGS 1
60 /* Unicode related */
61 #define Py_USING_UNICODE 1
62 #define PY_UNICODE_TYPE wchar_t
63 #define Py_UNICODE_SIZE SIZEOF_SHORT
65 /* EMX defines ssize_t */
66 #define HAVE_SSIZE_T 1
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
83 /* if port of GDBM installed, it includes NDBM emulation */
84 #define HAVE_NDBM_H 1
86 /* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
87 typedef long intptr_t;
89 /* we don't have tm_zone but do have the external array tzname */
90 #define HAVE_TZNAME 1
92 /* Define as the return type of signal handlers (int or void). */
93 #define RETSIGTYPE void
95 /* Define if you have the ANSI C header files. */
96 #define STDC_HEADERS 1
98 /* Define if you can safely include both <sys/time.h> and <time.h>. */
99 #define TIME_WITH_SYS_TIME 1
101 /* Define this if you have the type long long. */
102 #define HAVE_LONG_LONG 1
104 /* Define if your compiler supports function prototypes. */
105 #define HAVE_PROTOTYPES 1
107 /* Define if your compiler supports variable length function prototypes
108 * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
110 #define HAVE_STDARG_PROTOTYPES 1
112 /* Define if malloc(0) returns a NULL pointer. */
113 #define MALLOC_ZERO_RETURNS_NULL 1
115 /* Define to force use of thread-safe errno, h_errno, and other functions. */
116 #define _REENTRANT 1
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).
121 #define SYS_SELECT_WITH_SYS_TIME 1
123 /* The number of bytes in an off_t. */
124 #define SIZEOF_OFF_T 4
126 /* The number of bytes in an time_t. */
127 #define SIZEOF_TIME_T 4
129 /* The number of bytes in a short. */
130 #define SIZEOF_SHORT 2
132 /* The number of bytes in a int. */
133 #define SIZEOF_INT 4
135 /* The number of bytes in a long. */
136 #define SIZEOF_LONG 4
138 /* The number of bytes in a long long. */
139 #define SIZEOF_LONG_LONG 8
141 /* The number of bytes in a void *. */
142 #define SIZEOF_VOID_P 4
144 /* The number of bytes in a size_t. */
145 #define SIZEOF_SIZE_T 4
147 /* Define if you have the alarm function. */
148 #define HAVE_ALARM 1
150 /* Define if you have the clock function. */
151 #define HAVE_CLOCK 1
153 /* Define if you have the dup2 function. */
154 #define HAVE_DUP2 1
156 /* Define if you have the execv function. */
157 #define HAVE_EXECV 1
159 /* Define if you have the spawnv function. */
160 #define HAVE_SPAWNV 1
162 /* Define if you have the flock function. */
163 #define HAVE_FLOCK 1
165 /* Define if you have the fork function. */
166 #define HAVE_FORK 1
168 /* Define if you have the fsync function. */
169 #define HAVE_FSYNC 1
171 /* Define if you have the ftime function. */
172 #define HAVE_FTIME 1
174 /* Define if you have the ftruncate function. */
175 #define HAVE_FTRUNCATE 1
177 /* Define if you have the getcwd function. */
178 #define HAVE_GETCWD 1
180 /* Define if you have the getpeername function. */
181 #define HAVE_GETPEERNAME 1
183 /* Define if you have the getpgrp function. */
184 #define HAVE_GETPGRP 1
186 /* Define if you have the getpid function. */
187 #define HAVE_GETPID 1
189 /* Define if you have the getpwent function. */
190 #define HAVE_GETPWENT 1
192 /* Define if you have the gettimeofday function. */
193 #define HAVE_GETTIMEOFDAY 1
195 /* Define if you have the getwd function. */
196 #define HAVE_GETWD 1
198 /* Define if you have the hypot function. */
199 #define HAVE_HYPOT 1
201 /* Define if you have the kill function. */
202 #define HAVE_KILL 1
204 /* Define if you have the memmove function. */
205 #define HAVE_MEMMOVE 1
207 /* Define if you have the mktime function. */
208 #define HAVE_MKTIME 1
210 /* Define if you have the pause function. */
211 #define HAVE_PAUSE 1
213 /* Define if you have the putenv function. */
214 #define HAVE_PUTENV 1
216 /* Define if you have the select function. */
217 #define HAVE_SELECT 1
219 /* Define if you have the setgid function. */
220 #define HAVE_SETGID 1
222 /* Define if you have the setlocale function. */
223 #define HAVE_SETLOCALE 1
225 /* Define if you have the setpgid function. */
226 #define HAVE_SETPGID 1
228 /* Define if you have the setuid function. */
229 #define HAVE_SETUID 1
231 /* Define if you have the setvbuf function. */
232 #define HAVE_SETVBUF 1
234 /* Define if you have the sigaction function. */
235 #define HAVE_SIGACTION 1
237 /* Define if you have the strerror function. */
238 #define HAVE_STRERROR 1
240 /* Define if you have the strftime function. */
241 #define HAVE_STRFTIME 1
243 /* Define if you have the tcgetpgrp function. */
244 #define HAVE_TCGETPGRP 1
246 /* Define if you have the tcsetpgrp function. */
247 #define HAVE_TCSETPGRP 1
249 /* Define if you have the tmpfile function. */
250 #define HAVE_TMPFILE 1
252 /* Define if you have the times function. */
253 #define HAVE_TIMES 1
255 /* Define if you have the truncate function. */
256 #define HAVE_TRUNCATE 1
258 /* Define if you have the uname function. */
259 #define HAVE_UNAME 1
261 /* Define if you have the waitpid function. */
262 #define HAVE_WAITPID 1
264 /* Define if you have the <conio.h> header file. */
265 #undef HAVE_CONIO_H
267 /* Define to 1 if you have the `copysign' function. */
268 #define HAVE_COPYSIGN 1
270 /* Define if you have the <direct.h> header file. */
271 #undef HAVE_DIRECT_H
273 /* Define if you have the <dirent.h> header file. */
274 #define HAVE_DIRENT_H 1
276 /* Define if you have the <errno.h> header file. */
277 #define HAVE_ERRNO_H 1
279 /* Define if you have the <fcntl.h> header file. */
280 #define HAVE_FCNTL_H 1
282 /* Define if you have the <io.h> header file. */
283 #undef HAVE_IO_H
285 /* Define if you have the <ncurses.h> header file. */
286 #define HAVE_NCURSES_H 1
288 /* Define to 1 if you have the <process.h> header file. */
289 #define HAVE_PROCESS_H 1
291 /* Define if you have the <signal.h> header file. */
292 #define HAVE_SIGNAL_H 1
294 /* Define if you have the <sys/file.h> header file. */
295 #define HAVE_SYS_FILE_H 1
297 /* Define if you have the <sys/param.h> header file. */
298 #define HAVE_SYS_PARAM_H 1
300 /* Define if you have the <sys/select.h> header file. */
301 #define HAVE_SYS_SELECT_H 1
303 /* Define if you have the <sys/stat.h> header file. */
304 #define HAVE_SYS_STAT_H 1
306 /* Define if you have the <sys/time.h> header file. */
307 #define HAVE_SYS_TIME_H 1
309 /* Define if you have the <sys/times.h> header file. */
310 #define HAVE_SYS_TIMES_H 1
312 /* Define if you have the <sys/types.h> header file. */
313 #define HAVE_SYS_TYPES_H 1
315 /* Define if you have the <sys/un.h> header file. */
316 #define HAVE_SYS_UN_H 1
318 /* Define if you have the <sys/utsname.h> header file. */
319 #define HAVE_SYS_UTSNAME_H 1
321 /* Define if you have the <sys/wait.h> header file. */
322 #define HAVE_SYS_WAIT_H 1
324 /* Define if you have the <unistd.h> header file. */
325 #define HAVE_UNISTD_H 1
327 /* Define if you have the <utime.h> header file. */
328 #define HAVE_UTIME_H 1
330 /* EMX has an snprintf(). */
331 #define HAVE_SNPRINTF 1
333 #endif /* !Py_CONFIG_H */