blob: f2ef7f95b8ae85a793f848a030edbe49f3f24c79 [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.
Thomas Wouters477c8d52006-05-27 19:21:47 +000017MS_WINCE - Code specific to Windows CE
Mark Hammond8235ea12002-07-19 06:55:41 +000018Py_ENABLE_SHARED - Code if the Python core is built as a DLL.
Guido van Rossum950a1261996-07-30 17:38:17 +000019
20Also note that neither "_M_IX86" or "_MSC_VER" should be used for
21any purpose other than "Windows Intel x86 specific" and "Microsoft
22compiler specific". Therefore, these should be very rare.
23
Guido van Rossum87d5e701996-05-28 22:50:17 +000024
Mark Hammond8235ea12002-07-19 06:55:41 +000025NOTE: The following symbols are deprecated:
26NT, WIN32, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
27MS_CORE_DLL.
Fred Drake91c4e2b2000-06-19 13:41:54 +000028
Guido van Rossum87d5e701996-05-28 22:50:17 +000029*/
30
Thomas Wouters477c8d52006-05-27 19:21:47 +000031#ifdef _WIN32_WCE
32#define MS_WINCE
33#endif
34
Martin v. Löwise2a06022005-11-29 17:09:13 +000035/* Visual Studio 2005 introduces deprecation warnings for
36 "insecure" and POSIX functions. The insecure functions should
Walter Dörwald51490ac2005-11-30 20:16:17 +000037 be replaced by *_s versions (according to Microsoft); the
Martin v. Löwise2a06022005-11-29 17:09:13 +000038 POSIX functions by _* versions (which, according to Microsoft,
39 would be ISO C conforming). Neither renaming is feasible, so
40 we just silence the warnings. */
41
Thomas Wouters89f507f2006-12-13 04:49:30 +000042#ifndef _CRT_SECURE_NO_DEPRECATE
Martin v. Löwise2a06022005-11-29 17:09:13 +000043#define _CRT_SECURE_NO_DEPRECATE 1
Thomas Wouters89f507f2006-12-13 04:49:30 +000044#endif
45#ifndef _CRT_NONSTDC_NO_DEPRECATE
Martin v. Löwise2a06022005-11-29 17:09:13 +000046#define _CRT_NONSTDC_NO_DEPRECATE 1
Thomas Wouters89f507f2006-12-13 04:49:30 +000047#endif
Martin v. Löwise2a06022005-11-29 17:09:13 +000048
Thomas Wouters477c8d52006-05-27 19:21:47 +000049/* Windows CE does not have these */
50#ifndef MS_WINCE
51#define HAVE_IO_H
Tim Peters58e0a8c2001-05-14 22:32:33 +000052#define HAVE_SYS_UTIME_H
Fred Drake832181e2001-07-17 20:35:59 +000053#define HAVE_TEMPNAM
54#define HAVE_TMPFILE
55#define HAVE_TMPNAM
Mark Hammond8235ea12002-07-19 06:55:41 +000056#define HAVE_CLOCK
Mark Hammond8235ea12002-07-19 06:55:41 +000057#define HAVE_STRERROR
Thomas Wouters477c8d52006-05-27 19:21:47 +000058#endif
59
60#ifdef HAVE_IO_H
61#include <io.h>
62#endif
63
64#define HAVE_HYPOT
65#define HAVE_STRFTIME
Guido van Rossum87d5e701996-05-28 22:50:17 +000066#define DONT_HAVE_SIG_ALARM
67#define DONT_HAVE_SIG_PAUSE
Guido van Rossum1bc716f1996-06-28 19:12:06 +000068#define LONG_BIT 32
Mark Hammond8235ea12002-07-19 06:55:41 +000069#define WORD_BIT 32
Guido van Rossum950a1261996-07-30 17:38:17 +000070#define PREFIX ""
71#define EXEC_PREFIX ""
Guido van Rossum87d5e701996-05-28 22:50:17 +000072
Mark Hammond8235ea12002-07-19 06:55:41 +000073#define MS_WIN32 /* only support win32 and greater. */
74#define MS_WINDOWS
75#ifndef PYTHONPATH
76# define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
77#endif
78#define NT_THREADS
79#define WITH_THREAD
80#ifndef NETSCAPE_PI
81#define USE_SOCKET
82#endif
83
Thomas Wouters477c8d52006-05-27 19:21:47 +000084#ifdef MS_WINCE
Thomas Wouters0e3f5912006-08-11 14:57:12 +000085/* Python uses GetVersion() to distinguish between
86 * Windows NT and 9x/ME where OS Unicode support is concerned.
87 * Windows CE supports Unicode in the same way as NT so we
88 * define the missing GetVersion() accordingly.
89 */
90#define GetVersion() (4)
91/* Windows CE does not support environment variables */
92#define getenv(v) (NULL)
93#define environ (NULL)
Thomas Wouters477c8d52006-05-27 19:21:47 +000094#endif
95
Mark Hammond8235ea12002-07-19 06:55:41 +000096/* Compiler specific defines */
97
98/* ------------------------------------------------------------------------*/
Guido van Rossum87d5e701996-05-28 22:50:17 +000099/* Microsoft C defines _MSC_VER */
Guido van Rossumc66ae962000-05-08 14:14:48 +0000100#ifdef _MSC_VER
101
Tim Peters06284332002-11-11 19:44:39 +0000102/* We want COMPILER to expand to a string containing _MSC_VER's *value*.
103 * This is horridly tricky, because the stringization operator only works
104 * on macro arguments, and doesn't evaluate macros passed *as* arguments.
105 * Attempts simpler than the following appear doomed to produce "_MSC_VER"
106 * literally in the string.
107 */
108#define _Py_PASTE_VERSION(SUFFIX) \
109 ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")
110/* e.g., this produces, after compile-time string catenation,
111 * ("[MSC v.1200 32 bit (Intel)]")
112 *
113 * _Py_STRINGIZE(_MSC_VER) expands to
114 * _Py_STRINGIZE1((_MSC_VER)) expands to
115 * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting
116 * it's scanned again for macros and so further expands to (under MSVC 6)
117 * _Py_STRINGIZE2(1200) which then expands to
118 * "1200"
119 */
120#define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
121#define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
122#define _Py_STRINGIZE2(X) #X
123
Guido van Rossumc66ae962000-05-08 14:14:48 +0000124/* MSVC defines _WINxx to differentiate the windows platform types
125
126 Note that for compatibility reasons _WIN32 is defined on Win32
127 *and* on Win64. For the same reasons, in Python, MS_WIN32 is
128 defined on Win32 *and* Win64. Win32 only code must therefore be
129 guarded as follows:
130 #if defined(MS_WIN32) && !defined(MS_WIN64)
131*/
132#ifdef _WIN64
133#define MS_WIN64
134#endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000135
136/* set the COMPILER */
137#ifdef MS_WIN64
138#ifdef _M_IX86
Tim Petersc7ff90b2002-11-11 20:21:06 +0000139#define COMPILER _Py_PASTE_VERSION("64 bit (Intel)")
Martin v. Löwis512efb42004-07-27 14:16:14 +0000140#elif defined(_M_IA64)
141#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
142#elif defined(_M_AMD64)
143#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000144#else
Tim Peters06284332002-11-11 19:44:39 +0000145#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000146#endif
147#endif /* MS_WIN64 */
148
Thomas Wouters477c8d52006-05-27 19:21:47 +0000149/* _W64 is not defined for VC6 or eVC4 */
150#ifndef _W64
151#define _W64
152#endif
153
Martin v. Löwis18e16552006-02-15 17:27:45 +0000154/* Define like size_t, omitting the "unsigned" */
155#ifdef MS_WIN64
156typedef __int64 ssize_t;
157#else
158typedef _W64 int ssize_t;
159#endif
160#define HAVE_SSIZE_T 1
161
Guido van Rossumc66ae962000-05-08 14:14:48 +0000162#if defined(MS_WIN32) && !defined(MS_WIN64)
163#ifdef _M_IX86
Tim Peters06284332002-11-11 19:44:39 +0000164#define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000165#else
Tim Peters06284332002-11-11 19:44:39 +0000166#define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000167#endif
168#endif /* MS_WIN32 && !MS_WIN64 */
169
Mark Hammond8235ea12002-07-19 06:55:41 +0000170typedef int pid_t;
171#define hypot _hypot
172
Tim Peters862f0592004-09-23 19:11:32 +0000173#include <float.h>
174#define Py_IS_NAN _isnan
175#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
Thomas Wouters477c8d52006-05-27 19:21:47 +0000176#define Py_IS_FINITE(X) _finite(X)
Tim Peters862f0592004-09-23 19:11:32 +0000177
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000178/* Turn off warnings about deprecated C runtime functions in
179 VisualStudio .NET 2005 */
180#if _MSC_VER >= 1400 && !defined _CRT_SECURE_NO_DEPRECATE
181#define _CRT_SECURE_NO_DEPRECATE
182#endif
183
Guido van Rossumc66ae962000-05-08 14:14:48 +0000184#endif /* _MSC_VER */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000185
Mark Hammond8235ea12002-07-19 06:55:41 +0000186/* define some ANSI types that are not defined in earlier Win headers */
187#if defined(_MSC_VER) && _MSC_VER >= 1200
188/* This file only exists in VC 6.0 or higher */
189#include <basetsd.h>
Guido van Rossum87d5e701996-05-28 22:50:17 +0000190#endif
Guido van Rossum950a1261996-07-30 17:38:17 +0000191
Mark Hammond8235ea12002-07-19 06:55:41 +0000192/* ------------------------------------------------------------------------*/
Guido van Rossum87d5e701996-05-28 22:50:17 +0000193/* The Borland compiler defines __BORLANDC__ */
Guido van Rossumcf6c0ea1996-10-21 14:52:24 +0000194/* XXX These defines are likely incomplete, but should be easy to fix. */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000195#ifdef __BORLANDC__
196#define COMPILER "[Borland]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000197
198#ifdef _WIN32
Mark Hammondc756bdb2000-08-15 22:33:59 +0000199/* tested with BCC 5.5 (__BORLANDC__ >= 0x0550)
200 */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000201
Mark Hammondc756bdb2000-08-15 22:33:59 +0000202typedef int pid_t;
Mark Hammondc756bdb2000-08-15 22:33:59 +0000203/* BCC55 seems to understand __declspec(dllimport), it is used in its
Mark Hammond8235ea12002-07-19 06:55:41 +0000204 own header files (winnt.h, ...) - so we can do nothing and get the default*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000205
Tim Peters58e0a8c2001-05-14 22:32:33 +0000206#undef HAVE_SYS_UTIME_H
207#define HAVE_UTIME_H
208#define HAVE_DIRENT_H
Mark Hammond8235ea12002-07-19 06:55:41 +0000209
210/* rename a few functions for the Borland compiler */
211#include <io.h>
212#define _chsize chsize
213#define _setmode setmode
Tim Peters7f00deb2001-04-21 03:20:47 +0000214
Mark Hammondc756bdb2000-08-15 22:33:59 +0000215#else /* !_WIN32 */
Guido van Rossum60427412000-11-13 17:29:30 +0000216#error "Only Win32 and later are supported"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000217#endif /* !_WIN32 */
218
Guido van Rossum87d5e701996-05-28 22:50:17 +0000219#endif /* BORLANDC */
220
Mark Hammond8235ea12002-07-19 06:55:41 +0000221/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000222/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
223#if defined(__GNUC__) && defined(_WIN32)
Tim Petersb26f3632002-03-22 06:32:32 +0000224/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000225 They should be complete enough to build extension modules. */
226/* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
227 bug that requires structure imports. More recent versions of the
228 compiler don't exhibit this bug.
229*/
230#if (__GNUC__==2) && (__GNUC_MINOR__<=91)
231#warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
232#endif
233
Mark Hammondc756bdb2000-08-15 22:33:59 +0000234#define COMPILER "[gcc]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000235#define hypot _hypot
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000236#define PY_LONG_LONG long long
Mark Hammondc756bdb2000-08-15 22:33:59 +0000237#endif /* GNUC */
238
Mark Hammond8235ea12002-07-19 06:55:41 +0000239/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000240/* lcc-win32 defines __LCC__ */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000241#if defined(__LCC__)
Tim Petersb26f3632002-03-22 06:32:32 +0000242/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000243 They should be complete enough to build extension modules. */
244
Mark Hammondc756bdb2000-08-15 22:33:59 +0000245#define COMPILER "[lcc-win32]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000246typedef int pid_t;
Mark Hammond8235ea12002-07-19 06:55:41 +0000247/* __declspec() is supported here too - do nothing to get the defaults */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000248
Mark Hammondc756bdb2000-08-15 22:33:59 +0000249#endif /* LCC */
250
Mark Hammond8235ea12002-07-19 06:55:41 +0000251/* ------------------------------------------------------------------------*/
Guido van Rossum950a1261996-07-30 17:38:17 +0000252/* End of compilers - finish up */
253
Mark Hammond8235ea12002-07-19 06:55:41 +0000254#ifndef NO_STDIO_H
255# include <stdio.h>
Guido van Rossum361b5832000-06-30 22:17:53 +0000256#endif
Fred Drakea3f6e912000-06-29 20:44:47 +0000257
Mark Hammond8235ea12002-07-19 06:55:41 +0000258/* 64 bit ints are usually spelt __int64 unless compiler has overridden */
259#define HAVE_LONG_LONG 1
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000260#ifndef PY_LONG_LONG
261# define PY_LONG_LONG __int64
Mark Hammond8235ea12002-07-19 06:55:41 +0000262#endif
263
Tim Peters06284332002-11-11 19:44:39 +0000264/* For Windows the Python core is in a DLL by default. Test
Mark Hammond8235ea12002-07-19 06:55:41 +0000265Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
266#if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
267# define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
268# define MS_COREDLL /* deprecated old symbol */
269#endif /* !MS_NO_COREDLL && ... */
270
271/* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
272#ifdef USE_DL_EXPORT
273# define Py_BUILD_CORE
274#endif /* USE_DL_EXPORT */
275
276/* All windows compilers that use this header support __declspec */
277#define HAVE_DECLSPEC_DLL
278
279/* For an MSVC DLL, we can nominate the .lib files used by extensions */
280#ifdef MS_COREDLL
281# ifndef Py_BUILD_CORE /* not building the core - must be an ext */
282# if defined(_MSC_VER)
Tim Peters06284332002-11-11 19:44:39 +0000283 /* So MSVC users need not specify the .lib file in
Mark Hammond8235ea12002-07-19 06:55:41 +0000284 their Makefile (other compilers are generally
285 taken care of by distutils.) */
286# ifdef _DEBUG
Thomas Wouters00ee7ba2006-08-21 19:07:27 +0000287# pragma comment(lib,"python26_d.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000288# else
Thomas Wouters00ee7ba2006-08-21 19:07:27 +0000289# pragma comment(lib,"python26.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000290# endif /* _DEBUG */
291# endif /* _MSC_VER */
292# endif /* Py_BUILD_CORE */
293#endif /* MS_COREDLL */
294
Guido van Rossumc66ae962000-05-08 14:14:48 +0000295#if defined(MS_WIN64)
Guido van Rossumda5cc822000-05-10 13:25:32 +0000296/* maintain "win32" sys.platform for backward compatibility of Python code,
297 the Win64 API should be close enough to the Win32 API to make this
298 preferable */
Fred Drakea3f6e912000-06-29 20:44:47 +0000299# define PLATFORM "win32"
300# define SIZEOF_VOID_P 8
301# define SIZEOF_TIME_T 8
302# define SIZEOF_OFF_T 4
303# define SIZEOF_FPOS_T 8
304# define SIZEOF_HKEY 8
Martin v. Löwis18e16552006-02-15 17:27:45 +0000305# define SIZEOF_SIZE_T 8
Fred Drakea3f6e912000-06-29 20:44:47 +0000306/* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000307 sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t).
Fred Drakea3f6e912000-06-29 20:44:47 +0000308 On Win64 the second condition is not true, but if fpos_t replaces off_t
309 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
310 should define this. */
311# define HAVE_LARGEFILE_SUPPORT
Guido van Rossumc66ae962000-05-08 14:14:48 +0000312#elif defined(MS_WIN32)
Fred Drakea3f6e912000-06-29 20:44:47 +0000313# define PLATFORM "win32"
Tim Peters6e13a562001-09-06 00:32:15 +0000314# define HAVE_LARGEFILE_SUPPORT
Tim Peters06284332002-11-11 19:44:39 +0000315# define SIZEOF_VOID_P 4
Tim Peters06284332002-11-11 19:44:39 +0000316# define SIZEOF_OFF_T 4
317# define SIZEOF_FPOS_T 8
318# define SIZEOF_HKEY 4
Martin v. Löwis18e16552006-02-15 17:27:45 +0000319# define SIZEOF_SIZE_T 4
Martin v. Löwisf8d76712006-03-06 16:32:05 +0000320 /* MS VS2005 changes time_t to an 64-bit type on all platforms */
Martin v. Löwisa2d4d6c2006-03-06 16:30:25 +0000321# if defined(_MSC_VER) && _MSC_VER >= 1400
322# define SIZEOF_TIME_T 8
323# else
324# define SIZEOF_TIME_T 4
325# endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000326#endif
327
Mark Hammond8235ea12002-07-19 06:55:41 +0000328#ifdef _DEBUG
329# define Py_DEBUG
330#endif
331
Guido van Rossum950a1261996-07-30 17:38:17 +0000332
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000333#ifdef MS_WIN32
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000334
Tim Peters208efe52001-06-26 22:40:47 +0000335#define SIZEOF_SHORT 2
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000336#define SIZEOF_INT 4
337#define SIZEOF_LONG 4
Guido van Rossumb00d2521998-09-17 13:19:36 +0000338#define SIZEOF_LONG_LONG 8
Thomas Wouters477c8d52006-05-27 19:21:47 +0000339#define SIZEOF_DOUBLE 8
340#define SIZEOF_FLOAT 4
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000341
Raymond Hettingercbcff932004-08-03 08:52:46 +0000342/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
Thomas Wouters477c8d52006-05-27 19:21:47 +0000343 Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't
344 define these.
Raymond Hettingercbcff932004-08-03 08:52:46 +0000345 If some compiler does not provide them, modify the #if appropriately. */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000346#if defined(_MSC_VER)
Thomas Wouters477c8d52006-05-27 19:21:47 +0000347#if _MSC_VER > 1201
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000348#define HAVE_UINTPTR_T 1
349#define HAVE_INTPTR_T 1
Thomas Wouters477c8d52006-05-27 19:21:47 +0000350#else
351/* VC6 & eVC4 don't support the C99 LL suffix for 64-bit integer literals */
352#define Py_LL(x) x##I64
353#endif /* _MSC_VER > 1200 */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000354#endif /* _MSC_VER */
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000355
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000356#endif
357
Guido van Rossum87d5e701996-05-28 22:50:17 +0000358/* Fairly standard from here! */
359
360/* Define if on AIX 3.
361 System headers sometimes define this.
362 We just want to avoid a redefinition error message. */
363#ifndef _ALL_SOURCE
364/* #undef _ALL_SOURCE */
365#endif
366
367/* Define to empty if the keyword does not work. */
368/* #define const */
369
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000370/* Define to 1 if you have the <conio.h> header file. */
371#ifndef MS_WINCE
372#define HAVE_CONIO_H 1
373#endif
374
375/* Define to 1 if you have the <direct.h> header file. */
376#ifndef MS_WINCE
377#define HAVE_DIRECT_H 1
378#endif
379
Guido van Rossum87d5e701996-05-28 22:50:17 +0000380/* Define if you have dirent.h. */
381/* #define DIRENT 1 */
382
383/* Define to the type of elements in the array set by `getgroups'.
384 Usually this is either `int' or `gid_t'. */
385/* #undef GETGROUPS_T */
386
387/* Define to `int' if <sys/types.h> doesn't define. */
388/* #undef gid_t */
389
390/* Define if your struct tm has tm_zone. */
391/* #undef HAVE_TM_ZONE */
392
393/* Define if you don't have tm_zone but do have the external array
394 tzname. */
395#define HAVE_TZNAME
396
Guido van Rossum87d5e701996-05-28 22:50:17 +0000397/* Define to `int' if <sys/types.h> doesn't define. */
398/* #undef mode_t */
399
400/* Define if you don't have dirent.h, but have ndir.h. */
401/* #undef NDIR */
402
403/* Define to `long' if <sys/types.h> doesn't define. */
404/* #undef off_t */
405
406/* Define to `int' if <sys/types.h> doesn't define. */
407/* #undef pid_t */
408
409/* Define if the system does not provide POSIX.1 features except
410 with this defined. */
411/* #undef _POSIX_1_SOURCE */
412
413/* Define if you need to in order for stat and other things to work. */
414/* #undef _POSIX_SOURCE */
415
416/* Define as the return type of signal handlers (int or void). */
417#define RETSIGTYPE void
418
419/* Define to `unsigned' if <sys/types.h> doesn't define. */
420/* #undef size_t */
421
Guido van Rossumdb575db2000-04-24 15:37:34 +0000422/* Define to `int' if <sys/types.h> doesn't define. */
Martin v. Löwis272cb402002-03-01 08:31:07 +0000423#if _MSC_VER + 0 >= 1300
424/* VC.NET typedefs socklen_t in ws2tcpip.h. */
425#else
Guido van Rossumdb575db2000-04-24 15:37:34 +0000426#define socklen_t int
Martin v. Löwis272cb402002-03-01 08:31:07 +0000427#endif
Guido van Rossumdb575db2000-04-24 15:37:34 +0000428
Guido van Rossum87d5e701996-05-28 22:50:17 +0000429/* Define if you have the ANSI C header files. */
430#define STDC_HEADERS 1
431
432/* Define if you don't have dirent.h, but have sys/dir.h. */
433/* #undef SYSDIR */
434
435/* Define if you don't have dirent.h, but have sys/ndir.h. */
436/* #undef SYSNDIR */
437
438/* Define if you can safely include both <sys/time.h> and <time.h>. */
439/* #undef TIME_WITH_SYS_TIME */
440
441/* Define if your <sys/time.h> declares struct tm. */
442/* #define TM_IN_SYS_TIME 1 */
443
444/* Define to `int' if <sys/types.h> doesn't define. */
445/* #undef uid_t */
446
447/* Define if the closedir function returns void instead of int. */
448/* #undef VOID_CLOSEDIR */
449
Guido van Rossum87d5e701996-05-28 22:50:17 +0000450/* Define if getpgrp() must be called as getpgrp(0)
451 and (consequently) setpgrp() as setpgrp(0, 0). */
452/* #undef GETPGRP_HAVE_ARGS */
453
454/* Define this if your time.h defines altzone */
455/* #define HAVE_ALTZONE */
456
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000457/* Define if you have the putenv function. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000458#ifndef MS_WINCE
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000459#define HAVE_PUTENV
Thomas Wouters477c8d52006-05-27 19:21:47 +0000460#endif
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000461
Guido van Rossum87d5e701996-05-28 22:50:17 +0000462/* Define if your compiler supports function prototypes */
463#define HAVE_PROTOTYPES
464
465/* Define if you can safely include both <sys/select.h> and <sys/time.h>
466 (which you can't on SCO ODT 3.0). */
467/* #undef SYS_SELECT_WITH_SYS_TIME */
468
Martin v. Löwis2befa482002-06-09 13:41:37 +0000469/* Define if you want documentation strings in extension modules */
470#define WITH_DOC_STRINGS 1
471
Guido van Rossum87d5e701996-05-28 22:50:17 +0000472/* Define if you want to compile in rudimentary thread support */
473/* #undef WITH_THREAD */
474
475/* Define if you want to use the GNU readline library */
476/* #define WITH_READLINE 1 */
477
Fredrik Lundh9b14ab32001-06-26 22:59:49 +0000478/* Define if you want to have a Unicode type. */
479#define Py_USING_UNICODE
480
481/* Define as the integral type used for Unicode representation. */
482#define PY_UNICODE_TYPE unsigned short
483
484/* Define as the size of the unicode type. */
485#define Py_UNICODE_SIZE SIZEOF_SHORT
486
Fredrik Lundh793c1972001-06-27 19:49:17 +0000487/* Define if you have a useable wchar_t type defined in wchar.h; useable
488 means wchar_t must be 16-bit unsigned type. (see
489 Include/unicodeobject.h). */
490#if Py_UNICODE_SIZE == 2
491#define HAVE_USABLE_WCHAR_T
Mark Hammondc2e85bd2002-10-03 05:10:39 +0000492
493/* Define to indicate that the Python Unicode representation can be passed
494 as-is to Win32 Wide API. */
495#define Py_WIN_WIDE_FILENAMES
Fredrik Lundh793c1972001-06-27 19:49:17 +0000496#endif
497
Tim Petersb26f3632002-03-22 06:32:32 +0000498/* Use Python's own small-block memory-allocator. */
499#define WITH_PYMALLOC 1
500
Guido van Rossum87d5e701996-05-28 22:50:17 +0000501/* Define if you have clock. */
502/* #define HAVE_CLOCK */
503
Guido van Rossum9f9fa6d1999-12-20 22:57:41 +0000504/* Define when any dynamic module loading is enabled */
505#define HAVE_DYNAMIC_LOADING
506
Guido van Rossum87d5e701996-05-28 22:50:17 +0000507/* Define if you have ftime. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000508#ifndef MS_WINCE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000509#define HAVE_FTIME
Thomas Wouters477c8d52006-05-27 19:21:47 +0000510#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000511
512/* Define if you have getpeername. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000513#define HAVE_GETPEERNAME
Guido van Rossum87d5e701996-05-28 22:50:17 +0000514
515/* Define if you have getpgrp. */
516/* #undef HAVE_GETPGRP */
517
518/* Define if you have getpid. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000519#ifndef MS_WINCE
Guido van Rossumc3397531997-05-06 15:58:18 +0000520#define HAVE_GETPID
Thomas Wouters477c8d52006-05-27 19:21:47 +0000521#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000522
523/* Define if you have gettimeofday. */
524/* #undef HAVE_GETTIMEOFDAY */
525
526/* Define if you have getwd. */
527/* #undef HAVE_GETWD */
528
529/* Define if you have lstat. */
530/* #undef HAVE_LSTAT */
531
Guido van Rossum63096d41998-04-10 21:28:49 +0000532/* Define if you have the mktime function. */
533#define HAVE_MKTIME
534
Guido van Rossum87d5e701996-05-28 22:50:17 +0000535/* Define if you have nice. */
536/* #undef HAVE_NICE */
537
538/* Define if you have readlink. */
539/* #undef HAVE_READLINK */
540
541/* Define if you have select. */
542/* #undef HAVE_SELECT */
543
544/* Define if you have setpgid. */
545/* #undef HAVE_SETPGID */
546
547/* Define if you have setpgrp. */
548/* #undef HAVE_SETPGRP */
549
550/* Define if you have setsid. */
551/* #undef HAVE_SETSID */
552
Guido van Rossumc3397531997-05-06 15:58:18 +0000553/* Define if you have setvbuf. */
554#define HAVE_SETVBUF
555
Guido van Rossum87d5e701996-05-28 22:50:17 +0000556/* Define if you have siginterrupt. */
557/* #undef HAVE_SIGINTERRUPT */
558
559/* Define if you have symlink. */
560/* #undef HAVE_SYMLINK */
561
562/* Define if you have tcgetpgrp. */
563/* #undef HAVE_TCGETPGRP */
564
565/* Define if you have tcsetpgrp. */
566/* #undef HAVE_TCSETPGRP */
567
568/* Define if you have times. */
569/* #undef HAVE_TIMES */
570
571/* Define if you have uname. */
572/* #undef HAVE_UNAME */
573
574/* Define if you have waitpid. */
575/* #undef HAVE_WAITPID */
576
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000577/* Define to 1 if you have the `wcscoll' function. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000578#ifndef MS_WINCE
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000579#define HAVE_WCSCOLL 1
Thomas Wouters477c8d52006-05-27 19:21:47 +0000580#endif
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000581
Guido van Rossum87d5e701996-05-28 22:50:17 +0000582/* Define if you have the <dlfcn.h> header file. */
583/* #undef HAVE_DLFCN_H */
584
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000585/* Define to 1 if you have the <errno.h> header file. */
586#ifndef MS_WINCE
587#define HAVE_ERRNO_H 1
588#endif
589
Guido van Rossum87d5e701996-05-28 22:50:17 +0000590/* Define if you have the <fcntl.h> header file. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000591#ifndef MS_WINCE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000592#define HAVE_FCNTL_H 1
Thomas Wouters477c8d52006-05-27 19:21:47 +0000593#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000594
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000595/* Define to 1 if you have the <process.h> header file. */
596#ifndef MS_WINCE
597#define HAVE_PROCESS_H 1
598#endif
599
600/* Define to 1 if you have the <signal.h> header file. */
601#ifndef MS_WINCE
602#define HAVE_SIGNAL_H 1
603#endif
604
Guido van Rossum87d5e701996-05-28 22:50:17 +0000605/* Define if you have the <stdarg.h> prototypes. */
606#define HAVE_STDARG_PROTOTYPES
607
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000608/* Define if you have the <stddef.h> header file. */
609#define HAVE_STDDEF_H 1
610
Guido van Rossum87d5e701996-05-28 22:50:17 +0000611/* Define if you have the <sys/audioio.h> header file. */
612/* #undef HAVE_SYS_AUDIOIO_H */
613
614/* Define if you have the <sys/param.h> header file. */
615/* #define HAVE_SYS_PARAM_H 1 */
616
617/* Define if you have the <sys/select.h> header file. */
618/* #define HAVE_SYS_SELECT_H 1 */
619
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000620/* Define to 1 if you have the <sys/stat.h> header file. */
621#ifndef MS_WINCE
622#define HAVE_SYS_STAT_H 1
623#endif
624
Guido van Rossum87d5e701996-05-28 22:50:17 +0000625/* Define if you have the <sys/time.h> header file. */
626/* #define HAVE_SYS_TIME_H 1 */
627
628/* Define if you have the <sys/times.h> header file. */
629/* #define HAVE_SYS_TIMES_H 1 */
630
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000631/* Define to 1 if you have the <sys/types.h> header file. */
632#ifndef MS_WINCE
633#define HAVE_SYS_TYPES_H 1
634#endif
635
Guido van Rossum87d5e701996-05-28 22:50:17 +0000636/* Define if you have the <sys/un.h> header file. */
637/* #define HAVE_SYS_UN_H 1 */
638
639/* Define if you have the <sys/utime.h> header file. */
Tim Peters58e0a8c2001-05-14 22:32:33 +0000640/* #define HAVE_SYS_UTIME_H 1 */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000641
642/* Define if you have the <sys/utsname.h> header file. */
643/* #define HAVE_SYS_UTSNAME_H 1 */
644
645/* Define if you have the <thread.h> header file. */
646/* #undef HAVE_THREAD_H */
647
648/* Define if you have the <unistd.h> header file. */
649/* #define HAVE_UNISTD_H 1 */
650
651/* Define if you have the <utime.h> header file. */
652/* #define HAVE_UTIME_H 1 */
653
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000654/* Define if the compiler provides a wchar.h header file. */
655#define HAVE_WCHAR_H 1
656
Guido van Rossum87d5e701996-05-28 22:50:17 +0000657/* Define if you have the dl library (-ldl). */
658/* #undef HAVE_LIBDL */
659
660/* Define if you have the mpc library (-lmpc). */
661/* #undef HAVE_LIBMPC */
662
663/* Define if you have the nsl library (-lnsl). */
664#define HAVE_LIBNSL 1
665
666/* Define if you have the seq library (-lseq). */
667/* #undef HAVE_LIBSEQ */
668
669/* Define if you have the socket library (-lsocket). */
670#define HAVE_LIBSOCKET 1
671
672/* Define if you have the sun library (-lsun). */
673/* #undef HAVE_LIBSUN */
674
675/* Define if you have the termcap library (-ltermcap). */
676/* #undef HAVE_LIBTERMCAP */
677
678/* Define if you have the termlib library (-ltermlib). */
679/* #undef HAVE_LIBTERMLIB */
680
681/* Define if you have the thread library (-lthread). */
682/* #undef HAVE_LIBTHREAD */
Martin v. Löwisf84d1b92006-02-11 09:27:05 +0000683
684/* WinSock does not use a bitmask in select, and uses
685 socket handles greater than FD_SETSIZE */
686#define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
687
Guido van Rossum87d5e701996-05-28 22:50:17 +0000688#endif /* !Py_CONFIG_H */