blob: f0abd7484b900b38bf00f5fb8d29cb0860046d61 [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.
Martin v. Löwisa43190b2006-05-22 09:15:18 +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
Martin v. Löwisa43190b2006-05-22 09:15:18 +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
Martin v. Löwis2396f4c2006-11-21 18:21:34 +000042#ifndef _CRT_SECURE_NO_DEPRECATE
Martin v. Löwise2a06022005-11-29 17:09:13 +000043#define _CRT_SECURE_NO_DEPRECATE 1
Martin v. Löwis2396f4c2006-11-21 18:21:34 +000044#endif
45#ifndef _CRT_NONSTDC_NO_DEPRECATE
Martin v. Löwise2a06022005-11-29 17:09:13 +000046#define _CRT_NONSTDC_NO_DEPRECATE 1
Martin v. Löwis2396f4c2006-11-21 18:21:34 +000047#endif
Martin v. Löwise2a06022005-11-29 17:09:13 +000048
Martin v. Löwisa43190b2006-05-22 09:15:18 +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
Martin v. Löwisa43190b2006-05-22 09:15:18 +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
Martin v. Löwisa43190b2006-05-22 09:15:18 +000084#ifdef MS_WINCE
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +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)
Martin v. Löwisa43190b2006-05-22 09:15:18 +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
Martin v. Löwisa43190b2006-05-22 09:15:18 +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))
Kristján Valur Jónssonf94323f2006-05-25 15:53:30 +0000176#define Py_IS_FINITE(X) _finite(X)
Tim Peters862f0592004-09-23 19:11:32 +0000177
Kristján Valur Jónssondbeaa692006-06-09 16:28:01 +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
Martin v. Löwis22768852007-06-09 08:01:33 +0000237#define PY_LLONG_MIN LLONG_MIN
238#define PY_LLONG_MAX LLONG_MAX
239#define PY_ULLONG_MAX ULLONG_MAX
Mark Hammondc756bdb2000-08-15 22:33:59 +0000240#endif /* GNUC */
241
Mark Hammond8235ea12002-07-19 06:55:41 +0000242/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000243/* lcc-win32 defines __LCC__ */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000244#if defined(__LCC__)
Tim Petersb26f3632002-03-22 06:32:32 +0000245/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000246 They should be complete enough to build extension modules. */
247
Mark Hammondc756bdb2000-08-15 22:33:59 +0000248#define COMPILER "[lcc-win32]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000249typedef int pid_t;
Mark Hammond8235ea12002-07-19 06:55:41 +0000250/* __declspec() is supported here too - do nothing to get the defaults */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000251
Mark Hammondc756bdb2000-08-15 22:33:59 +0000252#endif /* LCC */
253
Mark Hammond8235ea12002-07-19 06:55:41 +0000254/* ------------------------------------------------------------------------*/
Guido van Rossum950a1261996-07-30 17:38:17 +0000255/* End of compilers - finish up */
256
Mark Hammond8235ea12002-07-19 06:55:41 +0000257#ifndef NO_STDIO_H
258# include <stdio.h>
Guido van Rossum361b5832000-06-30 22:17:53 +0000259#endif
Fred Drakea3f6e912000-06-29 20:44:47 +0000260
Mark Hammond8235ea12002-07-19 06:55:41 +0000261/* 64 bit ints are usually spelt __int64 unless compiler has overridden */
262#define HAVE_LONG_LONG 1
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000263#ifndef PY_LONG_LONG
264# define PY_LONG_LONG __int64
Martin v. Löwisd3d80f32007-06-14 20:47:15 +0000265# define PY_LLONG_MAX _I64_MAX
266# define PY_LLONG_MIN _I64_MIN
267# define PY_ULLONG_MAX _UI64_MAX
Mark Hammond8235ea12002-07-19 06:55:41 +0000268#endif
269
Tim Peters06284332002-11-11 19:44:39 +0000270/* For Windows the Python core is in a DLL by default. Test
Mark Hammond8235ea12002-07-19 06:55:41 +0000271Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
272#if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
273# define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
274# define MS_COREDLL /* deprecated old symbol */
275#endif /* !MS_NO_COREDLL && ... */
276
277/* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
278#ifdef USE_DL_EXPORT
279# define Py_BUILD_CORE
280#endif /* USE_DL_EXPORT */
281
282/* All windows compilers that use this header support __declspec */
283#define HAVE_DECLSPEC_DLL
284
285/* For an MSVC DLL, we can nominate the .lib files used by extensions */
286#ifdef MS_COREDLL
287# ifndef Py_BUILD_CORE /* not building the core - must be an ext */
288# if defined(_MSC_VER)
Tim Peters06284332002-11-11 19:44:39 +0000289 /* So MSVC users need not specify the .lib file in
Mark Hammond8235ea12002-07-19 06:55:41 +0000290 their Makefile (other compilers are generally
291 taken care of by distutils.) */
292# ifdef _DEBUG
Thomas Heller6ad6ee62004-12-01 19:39:52 +0000293# pragma comment(lib,"python25_d.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000294# else
Thomas Heller6ad6ee62004-12-01 19:39:52 +0000295# pragma comment(lib,"python25.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000296# endif /* _DEBUG */
297# endif /* _MSC_VER */
298# endif /* Py_BUILD_CORE */
299#endif /* MS_COREDLL */
300
Guido van Rossumc66ae962000-05-08 14:14:48 +0000301#if defined(MS_WIN64)
Guido van Rossumda5cc822000-05-10 13:25:32 +0000302/* maintain "win32" sys.platform for backward compatibility of Python code,
303 the Win64 API should be close enough to the Win32 API to make this
304 preferable */
Fred Drakea3f6e912000-06-29 20:44:47 +0000305# define PLATFORM "win32"
306# define SIZEOF_VOID_P 8
307# define SIZEOF_TIME_T 8
308# define SIZEOF_OFF_T 4
309# define SIZEOF_FPOS_T 8
310# define SIZEOF_HKEY 8
Martin v. Löwis18e16552006-02-15 17:27:45 +0000311# define SIZEOF_SIZE_T 8
Fred Drakea3f6e912000-06-29 20:44:47 +0000312/* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000313 sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t).
Fred Drakea3f6e912000-06-29 20:44:47 +0000314 On Win64 the second condition is not true, but if fpos_t replaces off_t
315 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
316 should define this. */
317# define HAVE_LARGEFILE_SUPPORT
Guido van Rossumc66ae962000-05-08 14:14:48 +0000318#elif defined(MS_WIN32)
Fred Drakea3f6e912000-06-29 20:44:47 +0000319# define PLATFORM "win32"
Tim Peters6e13a562001-09-06 00:32:15 +0000320# define HAVE_LARGEFILE_SUPPORT
Tim Peters06284332002-11-11 19:44:39 +0000321# define SIZEOF_VOID_P 4
Tim Peters06284332002-11-11 19:44:39 +0000322# define SIZEOF_OFF_T 4
323# define SIZEOF_FPOS_T 8
324# define SIZEOF_HKEY 4
Martin v. Löwis18e16552006-02-15 17:27:45 +0000325# define SIZEOF_SIZE_T 4
Martin v. Löwisf8d76712006-03-06 16:32:05 +0000326 /* MS VS2005 changes time_t to an 64-bit type on all platforms */
Martin v. Löwisa2d4d6c2006-03-06 16:30:25 +0000327# if defined(_MSC_VER) && _MSC_VER >= 1400
328# define SIZEOF_TIME_T 8
329# else
330# define SIZEOF_TIME_T 4
331# endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000332#endif
333
Mark Hammond8235ea12002-07-19 06:55:41 +0000334#ifdef _DEBUG
335# define Py_DEBUG
336#endif
337
Guido van Rossum950a1261996-07-30 17:38:17 +0000338
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000339#ifdef MS_WIN32
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000340
Tim Peters208efe52001-06-26 22:40:47 +0000341#define SIZEOF_SHORT 2
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000342#define SIZEOF_INT 4
343#define SIZEOF_LONG 4
Guido van Rossumb00d2521998-09-17 13:19:36 +0000344#define SIZEOF_LONG_LONG 8
Tim Peters31a42622006-05-22 11:29:41 +0000345#define SIZEOF_DOUBLE 8
346#define SIZEOF_FLOAT 4
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000347
Raymond Hettingercbcff932004-08-03 08:52:46 +0000348/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000349 Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't
350 define these.
Raymond Hettingercbcff932004-08-03 08:52:46 +0000351 If some compiler does not provide them, modify the #if appropriately. */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000352#if defined(_MSC_VER)
Martin v. Löwisd79fa9e2007-10-12 08:58:48 +0000353#if _MSC_VER > 1300
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000354#define HAVE_UINTPTR_T 1
355#define HAVE_INTPTR_T 1
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000356#else
Martin v. Löwisd79fa9e2007-10-12 08:58:48 +0000357/* VC6, VS 2002 and eVC4 don't support the C99 LL suffix for 64-bit integer literals */
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000358#define Py_LL(x) x##I64
Tim Peters31a42622006-05-22 11:29:41 +0000359#endif /* _MSC_VER > 1200 */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000360#endif /* _MSC_VER */
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000361
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000362#endif
363
Guido van Rossum87d5e701996-05-28 22:50:17 +0000364/* Fairly standard from here! */
365
366/* Define if on AIX 3.
367 System headers sometimes define this.
368 We just want to avoid a redefinition error message. */
369#ifndef _ALL_SOURCE
370/* #undef _ALL_SOURCE */
371#endif
372
373/* Define to empty if the keyword does not work. */
374/* #define const */
375
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +0000376/* Define to 1 if you have the <conio.h> header file. */
377#ifndef MS_WINCE
378#define HAVE_CONIO_H 1
379#endif
380
381/* Define to 1 if you have the <direct.h> header file. */
382#ifndef MS_WINCE
383#define HAVE_DIRECT_H 1
384#endif
385
Guido van Rossum87d5e701996-05-28 22:50:17 +0000386/* Define if you have dirent.h. */
387/* #define DIRENT 1 */
388
389/* Define to the type of elements in the array set by `getgroups'.
390 Usually this is either `int' or `gid_t'. */
391/* #undef GETGROUPS_T */
392
393/* Define to `int' if <sys/types.h> doesn't define. */
394/* #undef gid_t */
395
396/* Define if your struct tm has tm_zone. */
397/* #undef HAVE_TM_ZONE */
398
399/* Define if you don't have tm_zone but do have the external array
400 tzname. */
401#define HAVE_TZNAME
402
Guido van Rossum87d5e701996-05-28 22:50:17 +0000403/* Define to `int' if <sys/types.h> doesn't define. */
404/* #undef mode_t */
405
406/* Define if you don't have dirent.h, but have ndir.h. */
407/* #undef NDIR */
408
409/* Define to `long' if <sys/types.h> doesn't define. */
410/* #undef off_t */
411
412/* Define to `int' if <sys/types.h> doesn't define. */
413/* #undef pid_t */
414
415/* Define if the system does not provide POSIX.1 features except
416 with this defined. */
417/* #undef _POSIX_1_SOURCE */
418
419/* Define if you need to in order for stat and other things to work. */
420/* #undef _POSIX_SOURCE */
421
422/* Define as the return type of signal handlers (int or void). */
423#define RETSIGTYPE void
424
425/* Define to `unsigned' if <sys/types.h> doesn't define. */
426/* #undef size_t */
427
Guido van Rossumdb575db2000-04-24 15:37:34 +0000428/* Define to `int' if <sys/types.h> doesn't define. */
Martin v. Löwis272cb402002-03-01 08:31:07 +0000429#if _MSC_VER + 0 >= 1300
430/* VC.NET typedefs socklen_t in ws2tcpip.h. */
431#else
Guido van Rossumdb575db2000-04-24 15:37:34 +0000432#define socklen_t int
Martin v. Löwis272cb402002-03-01 08:31:07 +0000433#endif
Guido van Rossumdb575db2000-04-24 15:37:34 +0000434
Guido van Rossum87d5e701996-05-28 22:50:17 +0000435/* Define if you have the ANSI C header files. */
436#define STDC_HEADERS 1
437
438/* Define if you don't have dirent.h, but have sys/dir.h. */
439/* #undef SYSDIR */
440
441/* Define if you don't have dirent.h, but have sys/ndir.h. */
442/* #undef SYSNDIR */
443
444/* Define if you can safely include both <sys/time.h> and <time.h>. */
445/* #undef TIME_WITH_SYS_TIME */
446
447/* Define if your <sys/time.h> declares struct tm. */
448/* #define TM_IN_SYS_TIME 1 */
449
450/* Define to `int' if <sys/types.h> doesn't define. */
451/* #undef uid_t */
452
453/* Define if the closedir function returns void instead of int. */
454/* #undef VOID_CLOSEDIR */
455
Guido van Rossum87d5e701996-05-28 22:50:17 +0000456/* Define if getpgrp() must be called as getpgrp(0)
457 and (consequently) setpgrp() as setpgrp(0, 0). */
458/* #undef GETPGRP_HAVE_ARGS */
459
460/* Define this if your time.h defines altzone */
461/* #define HAVE_ALTZONE */
462
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000463/* Define if you have the putenv function. */
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000464#ifndef MS_WINCE
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000465#define HAVE_PUTENV
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000466#endif
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000467
Guido van Rossum87d5e701996-05-28 22:50:17 +0000468/* Define if your compiler supports function prototypes */
469#define HAVE_PROTOTYPES
470
471/* Define if you can safely include both <sys/select.h> and <sys/time.h>
472 (which you can't on SCO ODT 3.0). */
473/* #undef SYS_SELECT_WITH_SYS_TIME */
474
Martin v. Löwis2befa482002-06-09 13:41:37 +0000475/* Define if you want documentation strings in extension modules */
476#define WITH_DOC_STRINGS 1
477
Guido van Rossum87d5e701996-05-28 22:50:17 +0000478/* Define if you want to compile in rudimentary thread support */
479/* #undef WITH_THREAD */
480
481/* Define if you want to use the GNU readline library */
482/* #define WITH_READLINE 1 */
483
Fredrik Lundh9b14ab32001-06-26 22:59:49 +0000484/* Define if you want to have a Unicode type. */
485#define Py_USING_UNICODE
486
487/* Define as the integral type used for Unicode representation. */
488#define PY_UNICODE_TYPE unsigned short
489
490/* Define as the size of the unicode type. */
491#define Py_UNICODE_SIZE SIZEOF_SHORT
492
Fredrik Lundh793c1972001-06-27 19:49:17 +0000493/* Define if you have a useable wchar_t type defined in wchar.h; useable
494 means wchar_t must be 16-bit unsigned type. (see
495 Include/unicodeobject.h). */
496#if Py_UNICODE_SIZE == 2
497#define HAVE_USABLE_WCHAR_T
Mark Hammondc2e85bd2002-10-03 05:10:39 +0000498
499/* Define to indicate that the Python Unicode representation can be passed
500 as-is to Win32 Wide API. */
501#define Py_WIN_WIDE_FILENAMES
Fredrik Lundh793c1972001-06-27 19:49:17 +0000502#endif
503
Tim Petersb26f3632002-03-22 06:32:32 +0000504/* Use Python's own small-block memory-allocator. */
505#define WITH_PYMALLOC 1
506
Guido van Rossum87d5e701996-05-28 22:50:17 +0000507/* Define if you have clock. */
508/* #define HAVE_CLOCK */
509
Guido van Rossum9f9fa6d1999-12-20 22:57:41 +0000510/* Define when any dynamic module loading is enabled */
511#define HAVE_DYNAMIC_LOADING
512
Guido van Rossum87d5e701996-05-28 22:50:17 +0000513/* Define if you have ftime. */
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000514#ifndef MS_WINCE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000515#define HAVE_FTIME
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000516#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000517
518/* Define if you have getpeername. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000519#define HAVE_GETPEERNAME
Guido van Rossum87d5e701996-05-28 22:50:17 +0000520
521/* Define if you have getpgrp. */
522/* #undef HAVE_GETPGRP */
523
524/* Define if you have getpid. */
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000525#ifndef MS_WINCE
Guido van Rossumc3397531997-05-06 15:58:18 +0000526#define HAVE_GETPID
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000527#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000528
529/* Define if you have gettimeofday. */
530/* #undef HAVE_GETTIMEOFDAY */
531
532/* Define if you have getwd. */
533/* #undef HAVE_GETWD */
534
535/* Define if you have lstat. */
536/* #undef HAVE_LSTAT */
537
Guido van Rossum63096d41998-04-10 21:28:49 +0000538/* Define if you have the mktime function. */
539#define HAVE_MKTIME
540
Guido van Rossum87d5e701996-05-28 22:50:17 +0000541/* Define if you have nice. */
542/* #undef HAVE_NICE */
543
544/* Define if you have readlink. */
545/* #undef HAVE_READLINK */
546
547/* Define if you have select. */
548/* #undef HAVE_SELECT */
549
550/* Define if you have setpgid. */
551/* #undef HAVE_SETPGID */
552
553/* Define if you have setpgrp. */
554/* #undef HAVE_SETPGRP */
555
556/* Define if you have setsid. */
557/* #undef HAVE_SETSID */
558
Guido van Rossumc3397531997-05-06 15:58:18 +0000559/* Define if you have setvbuf. */
560#define HAVE_SETVBUF
561
Guido van Rossum87d5e701996-05-28 22:50:17 +0000562/* Define if you have siginterrupt. */
563/* #undef HAVE_SIGINTERRUPT */
564
565/* Define if you have symlink. */
566/* #undef HAVE_SYMLINK */
567
568/* Define if you have tcgetpgrp. */
569/* #undef HAVE_TCGETPGRP */
570
571/* Define if you have tcsetpgrp. */
572/* #undef HAVE_TCSETPGRP */
573
574/* Define if you have times. */
575/* #undef HAVE_TIMES */
576
577/* Define if you have uname. */
578/* #undef HAVE_UNAME */
579
580/* Define if you have waitpid. */
581/* #undef HAVE_WAITPID */
582
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000583/* Define to 1 if you have the `wcscoll' function. */
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000584#ifndef MS_WINCE
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000585#define HAVE_WCSCOLL 1
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000586#endif
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000587
Guido van Rossum87d5e701996-05-28 22:50:17 +0000588/* Define if you have the <dlfcn.h> header file. */
589/* #undef HAVE_DLFCN_H */
590
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +0000591/* Define to 1 if you have the <errno.h> header file. */
592#ifndef MS_WINCE
593#define HAVE_ERRNO_H 1
594#endif
595
Guido van Rossum87d5e701996-05-28 22:50:17 +0000596/* Define if you have the <fcntl.h> header file. */
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000597#ifndef MS_WINCE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000598#define HAVE_FCNTL_H 1
Martin v. Löwisa43190b2006-05-22 09:15:18 +0000599#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000600
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +0000601/* Define to 1 if you have the <process.h> header file. */
602#ifndef MS_WINCE
603#define HAVE_PROCESS_H 1
604#endif
605
606/* Define to 1 if you have the <signal.h> header file. */
607#ifndef MS_WINCE
608#define HAVE_SIGNAL_H 1
609#endif
610
Guido van Rossum87d5e701996-05-28 22:50:17 +0000611/* Define if you have the <stdarg.h> prototypes. */
612#define HAVE_STDARG_PROTOTYPES
613
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000614/* Define if you have the <stddef.h> header file. */
615#define HAVE_STDDEF_H 1
616
Guido van Rossum87d5e701996-05-28 22:50:17 +0000617/* Define if you have the <sys/audioio.h> header file. */
618/* #undef HAVE_SYS_AUDIOIO_H */
619
620/* Define if you have the <sys/param.h> header file. */
621/* #define HAVE_SYS_PARAM_H 1 */
622
623/* Define if you have the <sys/select.h> header file. */
624/* #define HAVE_SYS_SELECT_H 1 */
625
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +0000626/* Define to 1 if you have the <sys/stat.h> header file. */
627#ifndef MS_WINCE
628#define HAVE_SYS_STAT_H 1
629#endif
630
Guido van Rossum87d5e701996-05-28 22:50:17 +0000631/* Define if you have the <sys/time.h> header file. */
632/* #define HAVE_SYS_TIME_H 1 */
633
634/* Define if you have the <sys/times.h> header file. */
635/* #define HAVE_SYS_TIMES_H 1 */
636
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +0000637/* Define to 1 if you have the <sys/types.h> header file. */
638#ifndef MS_WINCE
639#define HAVE_SYS_TYPES_H 1
640#endif
641
Guido van Rossum87d5e701996-05-28 22:50:17 +0000642/* Define if you have the <sys/un.h> header file. */
643/* #define HAVE_SYS_UN_H 1 */
644
645/* Define if you have the <sys/utime.h> header file. */
Tim Peters58e0a8c2001-05-14 22:32:33 +0000646/* #define HAVE_SYS_UTIME_H 1 */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000647
648/* Define if you have the <sys/utsname.h> header file. */
649/* #define HAVE_SYS_UTSNAME_H 1 */
650
651/* Define if you have the <thread.h> header file. */
652/* #undef HAVE_THREAD_H */
653
654/* Define if you have the <unistd.h> header file. */
655/* #define HAVE_UNISTD_H 1 */
656
657/* Define if you have the <utime.h> header file. */
658/* #define HAVE_UTIME_H 1 */
659
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000660/* Define if the compiler provides a wchar.h header file. */
661#define HAVE_WCHAR_H 1
662
Guido van Rossum87d5e701996-05-28 22:50:17 +0000663/* Define if you have the dl library (-ldl). */
664/* #undef HAVE_LIBDL */
665
666/* Define if you have the mpc library (-lmpc). */
667/* #undef HAVE_LIBMPC */
668
669/* Define if you have the nsl library (-lnsl). */
670#define HAVE_LIBNSL 1
671
672/* Define if you have the seq library (-lseq). */
673/* #undef HAVE_LIBSEQ */
674
675/* Define if you have the socket library (-lsocket). */
676#define HAVE_LIBSOCKET 1
677
678/* Define if you have the sun library (-lsun). */
679/* #undef HAVE_LIBSUN */
680
681/* Define if you have the termcap library (-ltermcap). */
682/* #undef HAVE_LIBTERMCAP */
683
684/* Define if you have the termlib library (-ltermlib). */
685/* #undef HAVE_LIBTERMLIB */
686
687/* Define if you have the thread library (-lthread). */
688/* #undef HAVE_LIBTHREAD */
Martin v. Löwisf84d1b92006-02-11 09:27:05 +0000689
690/* WinSock does not use a bitmask in select, and uses
691 socket handles greater than FD_SETSIZE */
692#define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
693
Guido van Rossum87d5e701996-05-28 22:50:17 +0000694#endif /* !Py_CONFIG_H */