blob: 6c7846e5f270a7bdfbf56a01d09f4620c594ff82 [file] [log] [blame]
Guido van Rossum87d5e701996-05-28 22:50:17 +00001#ifndef Py_CONFIG_H
2#define Py_CONFIG_H
Guido van Rossum87d5e701996-05-28 22:50:17 +00003
Tim Peters76f373d2001-07-26 21:34:59 +00004/* pyconfig.h. NOT Generated automatically by configure.
Guido van Rossum87d5e701996-05-28 22:50:17 +00005
6This is a manually maintained version used for the Watcom,
Walter Dörwaldf0dfc7a2003-10-20 14:01:56 +00007Borland and Microsoft Visual C++ compilers. It is a
Guido van Rossum87d5e701996-05-28 22:50:17 +00008standard part of the Python distribution.
9
Guido van Rossum950a1261996-07-30 17:38:17 +000010WINDOWS DEFINES:
11The code specific to Windows should be wrapped around one of
12the following #defines
13
Guido van Rossumc66ae962000-05-08 14:14:48 +000014MS_WIN64 - Code specific to the MS Win64 API
Martin v. Löwis6238d2b2002-06-30 15:26:10 +000015MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs)
Guido van Rossum950a1261996-07-30 17:38:17 +000016MS_WINDOWS - Code specific to Windows, but all versions.
Mark Hammond8235ea12002-07-19 06:55:41 +000017Py_ENABLE_SHARED - Code if the Python core is built as a DLL.
Guido van Rossum950a1261996-07-30 17:38:17 +000018
19Also note that neither "_M_IX86" or "_MSC_VER" should be used for
20any purpose other than "Windows Intel x86 specific" and "Microsoft
21compiler specific". Therefore, these should be very rare.
22
Guido van Rossum87d5e701996-05-28 22:50:17 +000023
Mark Hammond8235ea12002-07-19 06:55:41 +000024NOTE: The following symbols are deprecated:
25NT, WIN32, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
26MS_CORE_DLL.
Fred Drake91c4e2b2000-06-19 13:41:54 +000027
Guido van Rossum87d5e701996-05-28 22:50:17 +000028*/
29
Martin v. Löwise2a06022005-11-29 17:09:13 +000030/* Visual Studio 2005 introduces deprecation warnings for
31 "insecure" and POSIX functions. The insecure functions should
Walter Dörwald51490ac2005-11-30 20:16:17 +000032 be replaced by *_s versions (according to Microsoft); the
Martin v. Löwise2a06022005-11-29 17:09:13 +000033 POSIX functions by _* versions (which, according to Microsoft,
34 would be ISO C conforming). Neither renaming is feasible, so
35 we just silence the warnings. */
36
37#define _CRT_SECURE_NO_DEPRECATE 1
38#define _CRT_NONSTDC_NO_DEPRECATE 1
39
Guido van Rossum87d5e701996-05-28 22:50:17 +000040#include <io.h>
Tim Peters58e0a8c2001-05-14 22:32:33 +000041#define HAVE_SYS_UTIME_H
Guido van Rossum87d5e701996-05-28 22:50:17 +000042#define HAVE_HYPOT
Fred Drake832181e2001-07-17 20:35:59 +000043#define HAVE_TEMPNAM
44#define HAVE_TMPFILE
45#define HAVE_TMPNAM
Mark Hammond8235ea12002-07-19 06:55:41 +000046#define HAVE_CLOCK
47#define HAVE_STRFTIME
48#define HAVE_STRERROR
Guido van Rossum87d5e701996-05-28 22:50:17 +000049#define DONT_HAVE_SIG_ALARM
50#define DONT_HAVE_SIG_PAUSE
Guido van Rossum1bc716f1996-06-28 19:12:06 +000051#define LONG_BIT 32
Mark Hammond8235ea12002-07-19 06:55:41 +000052#define WORD_BIT 32
Guido van Rossum950a1261996-07-30 17:38:17 +000053#define PREFIX ""
54#define EXEC_PREFIX ""
Guido van Rossum87d5e701996-05-28 22:50:17 +000055
Mark Hammond8235ea12002-07-19 06:55:41 +000056#define MS_WIN32 /* only support win32 and greater. */
57#define MS_WINDOWS
58#ifndef PYTHONPATH
59# define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
60#endif
61#define NT_THREADS
62#define WITH_THREAD
63#ifndef NETSCAPE_PI
64#define USE_SOCKET
65#endif
66
67/* Compiler specific defines */
68
69/* ------------------------------------------------------------------------*/
Guido van Rossum87d5e701996-05-28 22:50:17 +000070/* Microsoft C defines _MSC_VER */
Guido van Rossumc66ae962000-05-08 14:14:48 +000071#ifdef _MSC_VER
72
Tim Peters06284332002-11-11 19:44:39 +000073/* We want COMPILER to expand to a string containing _MSC_VER's *value*.
74 * This is horridly tricky, because the stringization operator only works
75 * on macro arguments, and doesn't evaluate macros passed *as* arguments.
76 * Attempts simpler than the following appear doomed to produce "_MSC_VER"
77 * literally in the string.
78 */
79#define _Py_PASTE_VERSION(SUFFIX) \
80 ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")
81/* e.g., this produces, after compile-time string catenation,
82 * ("[MSC v.1200 32 bit (Intel)]")
83 *
84 * _Py_STRINGIZE(_MSC_VER) expands to
85 * _Py_STRINGIZE1((_MSC_VER)) expands to
86 * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting
87 * it's scanned again for macros and so further expands to (under MSVC 6)
88 * _Py_STRINGIZE2(1200) which then expands to
89 * "1200"
90 */
91#define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
92#define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
93#define _Py_STRINGIZE2(X) #X
94
Guido van Rossumc66ae962000-05-08 14:14:48 +000095/* MSVC defines _WINxx to differentiate the windows platform types
96
97 Note that for compatibility reasons _WIN32 is defined on Win32
98 *and* on Win64. For the same reasons, in Python, MS_WIN32 is
99 defined on Win32 *and* Win64. Win32 only code must therefore be
100 guarded as follows:
101 #if defined(MS_WIN32) && !defined(MS_WIN64)
102*/
103#ifdef _WIN64
104#define MS_WIN64
105#endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000106
107/* set the COMPILER */
108#ifdef MS_WIN64
109#ifdef _M_IX86
Tim Petersc7ff90b2002-11-11 20:21:06 +0000110#define COMPILER _Py_PASTE_VERSION("64 bit (Intel)")
Martin v. Löwis512efb42004-07-27 14:16:14 +0000111#elif defined(_M_IA64)
112#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
113#elif defined(_M_AMD64)
114#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000115#else
Tim Peters06284332002-11-11 19:44:39 +0000116#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000117#endif
118#endif /* MS_WIN64 */
119
Martin v. Löwis18e16552006-02-15 17:27:45 +0000120/* Define like size_t, omitting the "unsigned" */
121#ifdef MS_WIN64
122typedef __int64 ssize_t;
123#else
124typedef _W64 int ssize_t;
125#endif
126#define HAVE_SSIZE_T 1
127
Guido van Rossumc66ae962000-05-08 14:14:48 +0000128#if defined(MS_WIN32) && !defined(MS_WIN64)
129#ifdef _M_IX86
Tim Peters06284332002-11-11 19:44:39 +0000130#define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000131#else
Tim Peters06284332002-11-11 19:44:39 +0000132#define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000133#endif
134#endif /* MS_WIN32 && !MS_WIN64 */
135
Mark Hammond8235ea12002-07-19 06:55:41 +0000136typedef int pid_t;
137#define hypot _hypot
138
Tim Peters862f0592004-09-23 19:11:32 +0000139#include <float.h>
140#define Py_IS_NAN _isnan
141#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
142
Guido van Rossumc66ae962000-05-08 14:14:48 +0000143#endif /* _MSC_VER */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000144
Mark Hammond8235ea12002-07-19 06:55:41 +0000145/* define some ANSI types that are not defined in earlier Win headers */
146#if defined(_MSC_VER) && _MSC_VER >= 1200
147/* This file only exists in VC 6.0 or higher */
148#include <basetsd.h>
Guido van Rossum87d5e701996-05-28 22:50:17 +0000149#endif
Guido van Rossum950a1261996-07-30 17:38:17 +0000150
Mark Hammond8235ea12002-07-19 06:55:41 +0000151/* ------------------------------------------------------------------------*/
Guido van Rossum87d5e701996-05-28 22:50:17 +0000152/* The Borland compiler defines __BORLANDC__ */
Guido van Rossumcf6c0ea1996-10-21 14:52:24 +0000153/* XXX These defines are likely incomplete, but should be easy to fix. */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000154#ifdef __BORLANDC__
155#define COMPILER "[Borland]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000156
157#ifdef _WIN32
Mark Hammondc756bdb2000-08-15 22:33:59 +0000158/* tested with BCC 5.5 (__BORLANDC__ >= 0x0550)
159 */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000160
Mark Hammondc756bdb2000-08-15 22:33:59 +0000161typedef int pid_t;
Mark Hammondc756bdb2000-08-15 22:33:59 +0000162/* BCC55 seems to understand __declspec(dllimport), it is used in its
Mark Hammond8235ea12002-07-19 06:55:41 +0000163 own header files (winnt.h, ...) - so we can do nothing and get the default*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000164
Tim Peters58e0a8c2001-05-14 22:32:33 +0000165#undef HAVE_SYS_UTIME_H
166#define HAVE_UTIME_H
167#define HAVE_DIRENT_H
Mark Hammond8235ea12002-07-19 06:55:41 +0000168
169/* rename a few functions for the Borland compiler */
170#include <io.h>
171#define _chsize chsize
172#define _setmode setmode
Tim Peters7f00deb2001-04-21 03:20:47 +0000173
Mark Hammondc756bdb2000-08-15 22:33:59 +0000174#else /* !_WIN32 */
Guido van Rossum60427412000-11-13 17:29:30 +0000175#error "Only Win32 and later are supported"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000176#endif /* !_WIN32 */
177
Guido van Rossum87d5e701996-05-28 22:50:17 +0000178#endif /* BORLANDC */
179
Mark Hammond8235ea12002-07-19 06:55:41 +0000180/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000181/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
182#if defined(__GNUC__) && defined(_WIN32)
Tim Petersb26f3632002-03-22 06:32:32 +0000183/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000184 They should be complete enough to build extension modules. */
185/* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
186 bug that requires structure imports. More recent versions of the
187 compiler don't exhibit this bug.
188*/
189#if (__GNUC__==2) && (__GNUC_MINOR__<=91)
190#warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
191#endif
192
Mark Hammondc756bdb2000-08-15 22:33:59 +0000193#define COMPILER "[gcc]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000194#define hypot _hypot
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000195#define PY_LONG_LONG long long
Mark Hammondc756bdb2000-08-15 22:33:59 +0000196#endif /* GNUC */
197
Mark Hammond8235ea12002-07-19 06:55:41 +0000198/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000199/* lcc-win32 defines __LCC__ */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000200#if defined(__LCC__)
Tim Petersb26f3632002-03-22 06:32:32 +0000201/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000202 They should be complete enough to build extension modules. */
203
Mark Hammondc756bdb2000-08-15 22:33:59 +0000204#define COMPILER "[lcc-win32]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000205typedef int pid_t;
Mark Hammond8235ea12002-07-19 06:55:41 +0000206/* __declspec() is supported here too - do nothing to get the defaults */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000207
Mark Hammondc756bdb2000-08-15 22:33:59 +0000208#endif /* LCC */
209
Mark Hammond8235ea12002-07-19 06:55:41 +0000210/* ------------------------------------------------------------------------*/
Guido van Rossum950a1261996-07-30 17:38:17 +0000211/* End of compilers - finish up */
212
Mark Hammond8235ea12002-07-19 06:55:41 +0000213#ifndef NO_STDIO_H
214# include <stdio.h>
Guido van Rossum361b5832000-06-30 22:17:53 +0000215#endif
Fred Drakea3f6e912000-06-29 20:44:47 +0000216
Mark Hammond8235ea12002-07-19 06:55:41 +0000217/* 64 bit ints are usually spelt __int64 unless compiler has overridden */
218#define HAVE_LONG_LONG 1
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000219#ifndef PY_LONG_LONG
220# define PY_LONG_LONG __int64
Mark Hammond8235ea12002-07-19 06:55:41 +0000221#endif
222
Tim Peters06284332002-11-11 19:44:39 +0000223/* For Windows the Python core is in a DLL by default. Test
Mark Hammond8235ea12002-07-19 06:55:41 +0000224Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
225#if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
226# define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
227# define MS_COREDLL /* deprecated old symbol */
228#endif /* !MS_NO_COREDLL && ... */
229
230/* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
231#ifdef USE_DL_EXPORT
232# define Py_BUILD_CORE
233#endif /* USE_DL_EXPORT */
234
235/* All windows compilers that use this header support __declspec */
236#define HAVE_DECLSPEC_DLL
237
238/* For an MSVC DLL, we can nominate the .lib files used by extensions */
239#ifdef MS_COREDLL
240# ifndef Py_BUILD_CORE /* not building the core - must be an ext */
241# if defined(_MSC_VER)
Tim Peters06284332002-11-11 19:44:39 +0000242 /* So MSVC users need not specify the .lib file in
Mark Hammond8235ea12002-07-19 06:55:41 +0000243 their Makefile (other compilers are generally
244 taken care of by distutils.) */
245# ifdef _DEBUG
Thomas Heller6ad6ee62004-12-01 19:39:52 +0000246# pragma comment(lib,"python25_d.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000247# else
Thomas Heller6ad6ee62004-12-01 19:39:52 +0000248# pragma comment(lib,"python25.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000249# endif /* _DEBUG */
250# endif /* _MSC_VER */
251# endif /* Py_BUILD_CORE */
252#endif /* MS_COREDLL */
253
Guido van Rossumc66ae962000-05-08 14:14:48 +0000254#if defined(MS_WIN64)
Guido van Rossumda5cc822000-05-10 13:25:32 +0000255/* maintain "win32" sys.platform for backward compatibility of Python code,
256 the Win64 API should be close enough to the Win32 API to make this
257 preferable */
Fred Drakea3f6e912000-06-29 20:44:47 +0000258# define PLATFORM "win32"
259# define SIZEOF_VOID_P 8
260# define SIZEOF_TIME_T 8
261# define SIZEOF_OFF_T 4
262# define SIZEOF_FPOS_T 8
263# define SIZEOF_HKEY 8
Martin v. Löwis18e16552006-02-15 17:27:45 +0000264# define SIZEOF_SIZE_T 8
Fred Drakea3f6e912000-06-29 20:44:47 +0000265/* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000266 sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t).
Fred Drakea3f6e912000-06-29 20:44:47 +0000267 On Win64 the second condition is not true, but if fpos_t replaces off_t
268 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
269 should define this. */
270# define HAVE_LARGEFILE_SUPPORT
Guido van Rossumc66ae962000-05-08 14:14:48 +0000271#elif defined(MS_WIN32)
Fred Drakea3f6e912000-06-29 20:44:47 +0000272# define PLATFORM "win32"
Tim Peters6e13a562001-09-06 00:32:15 +0000273# define HAVE_LARGEFILE_SUPPORT
Tim Peters06284332002-11-11 19:44:39 +0000274# define SIZEOF_VOID_P 4
Tim Peters06284332002-11-11 19:44:39 +0000275# define SIZEOF_OFF_T 4
276# define SIZEOF_FPOS_T 8
277# define SIZEOF_HKEY 4
Martin v. Löwis18e16552006-02-15 17:27:45 +0000278# define SIZEOF_SIZE_T 4
Martin v. Löwisf8d76712006-03-06 16:32:05 +0000279 /* MS VS2005 changes time_t to an 64-bit type on all platforms */
Martin v. Löwisa2d4d6c2006-03-06 16:30:25 +0000280# if defined(_MSC_VER) && _MSC_VER >= 1400
281# define SIZEOF_TIME_T 8
282# else
283# define SIZEOF_TIME_T 4
284# endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000285#endif
286
Mark Hammond8235ea12002-07-19 06:55:41 +0000287#ifdef _DEBUG
288# define Py_DEBUG
289#endif
290
Guido van Rossum950a1261996-07-30 17:38:17 +0000291
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000292#ifdef MS_WIN32
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000293
Tim Peters208efe52001-06-26 22:40:47 +0000294#define SIZEOF_SHORT 2
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000295#define SIZEOF_INT 4
296#define SIZEOF_LONG 4
Guido van Rossumb00d2521998-09-17 13:19:36 +0000297#define SIZEOF_LONG_LONG 8
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000298
Raymond Hettingercbcff932004-08-03 08:52:46 +0000299/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
300 If some compiler does not provide them, modify the #if appropriately. */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000301#if defined(_MSC_VER)
302#if _MSC_VER > 1200
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000303#define HAVE_UINTPTR_T 1
304#define HAVE_INTPTR_T 1
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000305#endif /* _MSC_VER > 1200 */
306#endif /* _MSC_VER */
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000307
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000308#endif
309
Guido van Rossum87d5e701996-05-28 22:50:17 +0000310/* Fairly standard from here! */
311
312/* Define if on AIX 3.
313 System headers sometimes define this.
314 We just want to avoid a redefinition error message. */
315#ifndef _ALL_SOURCE
316/* #undef _ALL_SOURCE */
317#endif
318
319/* Define to empty if the keyword does not work. */
320/* #define const */
321
322/* Define if you have dirent.h. */
323/* #define DIRENT 1 */
324
325/* Define to the type of elements in the array set by `getgroups'.
326 Usually this is either `int' or `gid_t'. */
327/* #undef GETGROUPS_T */
328
329/* Define to `int' if <sys/types.h> doesn't define. */
330/* #undef gid_t */
331
332/* Define if your struct tm has tm_zone. */
333/* #undef HAVE_TM_ZONE */
334
335/* Define if you don't have tm_zone but do have the external array
336 tzname. */
337#define HAVE_TZNAME
338
Guido van Rossum87d5e701996-05-28 22:50:17 +0000339/* Define to `int' if <sys/types.h> doesn't define. */
340/* #undef mode_t */
341
342/* Define if you don't have dirent.h, but have ndir.h. */
343/* #undef NDIR */
344
345/* Define to `long' if <sys/types.h> doesn't define. */
346/* #undef off_t */
347
348/* Define to `int' if <sys/types.h> doesn't define. */
349/* #undef pid_t */
350
351/* Define if the system does not provide POSIX.1 features except
352 with this defined. */
353/* #undef _POSIX_1_SOURCE */
354
355/* Define if you need to in order for stat and other things to work. */
356/* #undef _POSIX_SOURCE */
357
358/* Define as the return type of signal handlers (int or void). */
359#define RETSIGTYPE void
360
361/* Define to `unsigned' if <sys/types.h> doesn't define. */
362/* #undef size_t */
363
Guido van Rossumdb575db2000-04-24 15:37:34 +0000364/* Define to `int' if <sys/types.h> doesn't define. */
Martin v. Löwis272cb402002-03-01 08:31:07 +0000365#if _MSC_VER + 0 >= 1300
366/* VC.NET typedefs socklen_t in ws2tcpip.h. */
367#else
Guido van Rossumdb575db2000-04-24 15:37:34 +0000368#define socklen_t int
Martin v. Löwis272cb402002-03-01 08:31:07 +0000369#endif
Guido van Rossumdb575db2000-04-24 15:37:34 +0000370
Guido van Rossum87d5e701996-05-28 22:50:17 +0000371/* Define if you have the ANSI C header files. */
372#define STDC_HEADERS 1
373
374/* Define if you don't have dirent.h, but have sys/dir.h. */
375/* #undef SYSDIR */
376
377/* Define if you don't have dirent.h, but have sys/ndir.h. */
378/* #undef SYSNDIR */
379
380/* Define if you can safely include both <sys/time.h> and <time.h>. */
381/* #undef TIME_WITH_SYS_TIME */
382
383/* Define if your <sys/time.h> declares struct tm. */
384/* #define TM_IN_SYS_TIME 1 */
385
386/* Define to `int' if <sys/types.h> doesn't define. */
387/* #undef uid_t */
388
389/* Define if the closedir function returns void instead of int. */
390/* #undef VOID_CLOSEDIR */
391
Guido van Rossum87d5e701996-05-28 22:50:17 +0000392/* Define if getpgrp() must be called as getpgrp(0)
393 and (consequently) setpgrp() as setpgrp(0, 0). */
394/* #undef GETPGRP_HAVE_ARGS */
395
396/* Define this if your time.h defines altzone */
397/* #define HAVE_ALTZONE */
398
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000399/* Define if you have the putenv function. */
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000400#define HAVE_PUTENV
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000401
Guido van Rossum87d5e701996-05-28 22:50:17 +0000402/* Define if your compiler supports function prototypes */
403#define HAVE_PROTOTYPES
404
405/* Define if you can safely include both <sys/select.h> and <sys/time.h>
406 (which you can't on SCO ODT 3.0). */
407/* #undef SYS_SELECT_WITH_SYS_TIME */
408
Martin v. Löwis2befa482002-06-09 13:41:37 +0000409/* Define if you want documentation strings in extension modules */
410#define WITH_DOC_STRINGS 1
411
Guido van Rossum87d5e701996-05-28 22:50:17 +0000412/* Define if you want to compile in rudimentary thread support */
413/* #undef WITH_THREAD */
414
415/* Define if you want to use the GNU readline library */
416/* #define WITH_READLINE 1 */
417
Fredrik Lundh9b14ab32001-06-26 22:59:49 +0000418/* Define if you want to have a Unicode type. */
419#define Py_USING_UNICODE
420
421/* Define as the integral type used for Unicode representation. */
422#define PY_UNICODE_TYPE unsigned short
423
424/* Define as the size of the unicode type. */
425#define Py_UNICODE_SIZE SIZEOF_SHORT
426
Fredrik Lundh793c1972001-06-27 19:49:17 +0000427/* Define if you have a useable wchar_t type defined in wchar.h; useable
428 means wchar_t must be 16-bit unsigned type. (see
429 Include/unicodeobject.h). */
430#if Py_UNICODE_SIZE == 2
431#define HAVE_USABLE_WCHAR_T
Mark Hammondc2e85bd2002-10-03 05:10:39 +0000432
433/* Define to indicate that the Python Unicode representation can be passed
434 as-is to Win32 Wide API. */
435#define Py_WIN_WIDE_FILENAMES
Fredrik Lundh793c1972001-06-27 19:49:17 +0000436#endif
437
Tim Petersb26f3632002-03-22 06:32:32 +0000438/* Use Python's own small-block memory-allocator. */
439#define WITH_PYMALLOC 1
440
Guido van Rossum87d5e701996-05-28 22:50:17 +0000441/* Define if you have clock. */
442/* #define HAVE_CLOCK */
443
Guido van Rossum9f9fa6d1999-12-20 22:57:41 +0000444/* Define when any dynamic module loading is enabled */
445#define HAVE_DYNAMIC_LOADING
446
Guido van Rossum87d5e701996-05-28 22:50:17 +0000447/* Define if you have ftime. */
448#define HAVE_FTIME
449
450/* Define if you have getpeername. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000451#define HAVE_GETPEERNAME
Guido van Rossum87d5e701996-05-28 22:50:17 +0000452
453/* Define if you have getpgrp. */
454/* #undef HAVE_GETPGRP */
455
456/* Define if you have getpid. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000457#define HAVE_GETPID
Guido van Rossum87d5e701996-05-28 22:50:17 +0000458
459/* Define if you have gettimeofday. */
460/* #undef HAVE_GETTIMEOFDAY */
461
462/* Define if you have getwd. */
463/* #undef HAVE_GETWD */
464
465/* Define if you have lstat. */
466/* #undef HAVE_LSTAT */
467
Guido van Rossum63096d41998-04-10 21:28:49 +0000468/* Define if you have the mktime function. */
469#define HAVE_MKTIME
470
Guido van Rossum87d5e701996-05-28 22:50:17 +0000471/* Define if you have nice. */
472/* #undef HAVE_NICE */
473
474/* Define if you have readlink. */
475/* #undef HAVE_READLINK */
476
477/* Define if you have select. */
478/* #undef HAVE_SELECT */
479
480/* Define if you have setpgid. */
481/* #undef HAVE_SETPGID */
482
483/* Define if you have setpgrp. */
484/* #undef HAVE_SETPGRP */
485
486/* Define if you have setsid. */
487/* #undef HAVE_SETSID */
488
Guido van Rossumc3397531997-05-06 15:58:18 +0000489/* Define if you have setvbuf. */
490#define HAVE_SETVBUF
491
Guido van Rossum87d5e701996-05-28 22:50:17 +0000492/* Define if you have siginterrupt. */
493/* #undef HAVE_SIGINTERRUPT */
494
495/* Define if you have symlink. */
496/* #undef HAVE_SYMLINK */
497
498/* Define if you have tcgetpgrp. */
499/* #undef HAVE_TCGETPGRP */
500
501/* Define if you have tcsetpgrp. */
502/* #undef HAVE_TCSETPGRP */
503
504/* Define if you have times. */
505/* #undef HAVE_TIMES */
506
507/* Define if you have uname. */
508/* #undef HAVE_UNAME */
509
510/* Define if you have waitpid. */
511/* #undef HAVE_WAITPID */
512
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000513/* Define to 1 if you have the `wcscoll' function. */
514#define HAVE_WCSCOLL 1
515
Guido van Rossum87d5e701996-05-28 22:50:17 +0000516/* Define if you have the <dlfcn.h> header file. */
517/* #undef HAVE_DLFCN_H */
518
519/* Define if you have the <fcntl.h> header file. */
520#define HAVE_FCNTL_H 1
521
Guido van Rossum87d5e701996-05-28 22:50:17 +0000522/* Define if you have the <stdarg.h> prototypes. */
523#define HAVE_STDARG_PROTOTYPES
524
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000525/* Define if you have the <stddef.h> header file. */
526#define HAVE_STDDEF_H 1
527
Guido van Rossum87d5e701996-05-28 22:50:17 +0000528/* Define if you have the <sys/audioio.h> header file. */
529/* #undef HAVE_SYS_AUDIOIO_H */
530
531/* Define if you have the <sys/param.h> header file. */
532/* #define HAVE_SYS_PARAM_H 1 */
533
534/* Define if you have the <sys/select.h> header file. */
535/* #define HAVE_SYS_SELECT_H 1 */
536
537/* Define if you have the <sys/time.h> header file. */
538/* #define HAVE_SYS_TIME_H 1 */
539
540/* Define if you have the <sys/times.h> header file. */
541/* #define HAVE_SYS_TIMES_H 1 */
542
543/* Define if you have the <sys/un.h> header file. */
544/* #define HAVE_SYS_UN_H 1 */
545
546/* Define if you have the <sys/utime.h> header file. */
Tim Peters58e0a8c2001-05-14 22:32:33 +0000547/* #define HAVE_SYS_UTIME_H 1 */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000548
549/* Define if you have the <sys/utsname.h> header file. */
550/* #define HAVE_SYS_UTSNAME_H 1 */
551
552/* Define if you have the <thread.h> header file. */
553/* #undef HAVE_THREAD_H */
554
555/* Define if you have the <unistd.h> header file. */
556/* #define HAVE_UNISTD_H 1 */
557
558/* Define if you have the <utime.h> header file. */
559/* #define HAVE_UTIME_H 1 */
560
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000561/* Define if the compiler provides a wchar.h header file. */
562#define HAVE_WCHAR_H 1
563
Guido van Rossum87d5e701996-05-28 22:50:17 +0000564/* Define if you have the dl library (-ldl). */
565/* #undef HAVE_LIBDL */
566
567/* Define if you have the mpc library (-lmpc). */
568/* #undef HAVE_LIBMPC */
569
570/* Define if you have the nsl library (-lnsl). */
571#define HAVE_LIBNSL 1
572
573/* Define if you have the seq library (-lseq). */
574/* #undef HAVE_LIBSEQ */
575
576/* Define if you have the socket library (-lsocket). */
577#define HAVE_LIBSOCKET 1
578
579/* Define if you have the sun library (-lsun). */
580/* #undef HAVE_LIBSUN */
581
582/* Define if you have the termcap library (-ltermcap). */
583/* #undef HAVE_LIBTERMCAP */
584
585/* Define if you have the termlib library (-ltermlib). */
586/* #undef HAVE_LIBTERMLIB */
587
588/* Define if you have the thread library (-lthread). */
589/* #undef HAVE_LIBTHREAD */
Martin v. Löwisf84d1b92006-02-11 09:27:05 +0000590
591/* WinSock does not use a bitmask in select, and uses
592 socket handles greater than FD_SETSIZE */
593#define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
594
Guido van Rossum87d5e701996-05-28 22:50:17 +0000595#endif /* !Py_CONFIG_H */