blob: cb42131d4f06a05efa49a54f5aa6cfd7c3cdc5be [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
42#define _CRT_SECURE_NO_DEPRECATE 1
43#define _CRT_NONSTDC_NO_DEPRECATE 1
44
Thomas Wouters477c8d52006-05-27 19:21:47 +000045/* Windows CE does not have these */
46#ifndef MS_WINCE
47#define HAVE_IO_H
Tim Peters58e0a8c2001-05-14 22:32:33 +000048#define HAVE_SYS_UTIME_H
Fred Drake832181e2001-07-17 20:35:59 +000049#define HAVE_TEMPNAM
50#define HAVE_TMPFILE
51#define HAVE_TMPNAM
Mark Hammond8235ea12002-07-19 06:55:41 +000052#define HAVE_CLOCK
Mark Hammond8235ea12002-07-19 06:55:41 +000053#define HAVE_STRERROR
Thomas Wouters477c8d52006-05-27 19:21:47 +000054#endif
55
56#ifdef HAVE_IO_H
57#include <io.h>
58#endif
59
60#define HAVE_HYPOT
61#define HAVE_STRFTIME
Guido van Rossum87d5e701996-05-28 22:50:17 +000062#define DONT_HAVE_SIG_ALARM
63#define DONT_HAVE_SIG_PAUSE
Guido van Rossum1bc716f1996-06-28 19:12:06 +000064#define LONG_BIT 32
Mark Hammond8235ea12002-07-19 06:55:41 +000065#define WORD_BIT 32
Guido van Rossum950a1261996-07-30 17:38:17 +000066#define PREFIX ""
67#define EXEC_PREFIX ""
Guido van Rossum87d5e701996-05-28 22:50:17 +000068
Mark Hammond8235ea12002-07-19 06:55:41 +000069#define MS_WIN32 /* only support win32 and greater. */
70#define MS_WINDOWS
71#ifndef PYTHONPATH
72# define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
73#endif
74#define NT_THREADS
75#define WITH_THREAD
76#ifndef NETSCAPE_PI
77#define USE_SOCKET
78#endif
79
Thomas Wouters477c8d52006-05-27 19:21:47 +000080#ifdef MS_WINCE
81#define DONT_HAVE_SYS_STAT_H
82#define DONT_HAVE_ERRNO_H
83#endif
84
Mark Hammond8235ea12002-07-19 06:55:41 +000085/* Compiler specific defines */
86
87/* ------------------------------------------------------------------------*/
Guido van Rossum87d5e701996-05-28 22:50:17 +000088/* Microsoft C defines _MSC_VER */
Guido van Rossumc66ae962000-05-08 14:14:48 +000089#ifdef _MSC_VER
90
Tim Peters06284332002-11-11 19:44:39 +000091/* We want COMPILER to expand to a string containing _MSC_VER's *value*.
92 * This is horridly tricky, because the stringization operator only works
93 * on macro arguments, and doesn't evaluate macros passed *as* arguments.
94 * Attempts simpler than the following appear doomed to produce "_MSC_VER"
95 * literally in the string.
96 */
97#define _Py_PASTE_VERSION(SUFFIX) \
98 ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")
99/* e.g., this produces, after compile-time string catenation,
100 * ("[MSC v.1200 32 bit (Intel)]")
101 *
102 * _Py_STRINGIZE(_MSC_VER) expands to
103 * _Py_STRINGIZE1((_MSC_VER)) expands to
104 * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting
105 * it's scanned again for macros and so further expands to (under MSVC 6)
106 * _Py_STRINGIZE2(1200) which then expands to
107 * "1200"
108 */
109#define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
110#define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
111#define _Py_STRINGIZE2(X) #X
112
Guido van Rossumc66ae962000-05-08 14:14:48 +0000113/* MSVC defines _WINxx to differentiate the windows platform types
114
115 Note that for compatibility reasons _WIN32 is defined on Win32
116 *and* on Win64. For the same reasons, in Python, MS_WIN32 is
117 defined on Win32 *and* Win64. Win32 only code must therefore be
118 guarded as follows:
119 #if defined(MS_WIN32) && !defined(MS_WIN64)
120*/
121#ifdef _WIN64
122#define MS_WIN64
123#endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000124
125/* set the COMPILER */
126#ifdef MS_WIN64
127#ifdef _M_IX86
Tim Petersc7ff90b2002-11-11 20:21:06 +0000128#define COMPILER _Py_PASTE_VERSION("64 bit (Intel)")
Martin v. Löwis512efb42004-07-27 14:16:14 +0000129#elif defined(_M_IA64)
130#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
131#elif defined(_M_AMD64)
132#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000133#else
Tim Peters06284332002-11-11 19:44:39 +0000134#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000135#endif
136#endif /* MS_WIN64 */
137
Thomas Wouters477c8d52006-05-27 19:21:47 +0000138/* _W64 is not defined for VC6 or eVC4 */
139#ifndef _W64
140#define _W64
141#endif
142
Martin v. Löwis18e16552006-02-15 17:27:45 +0000143/* Define like size_t, omitting the "unsigned" */
144#ifdef MS_WIN64
145typedef __int64 ssize_t;
146#else
147typedef _W64 int ssize_t;
148#endif
149#define HAVE_SSIZE_T 1
150
Guido van Rossumc66ae962000-05-08 14:14:48 +0000151#if defined(MS_WIN32) && !defined(MS_WIN64)
152#ifdef _M_IX86
Tim Peters06284332002-11-11 19:44:39 +0000153#define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000154#else
Tim Peters06284332002-11-11 19:44:39 +0000155#define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
Guido van Rossumc66ae962000-05-08 14:14:48 +0000156#endif
157#endif /* MS_WIN32 && !MS_WIN64 */
158
Mark Hammond8235ea12002-07-19 06:55:41 +0000159typedef int pid_t;
160#define hypot _hypot
161
Tim Peters862f0592004-09-23 19:11:32 +0000162#include <float.h>
163#define Py_IS_NAN _isnan
164#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
Thomas Wouters477c8d52006-05-27 19:21:47 +0000165#define Py_IS_FINITE(X) _finite(X)
Tim Peters862f0592004-09-23 19:11:32 +0000166
Guido van Rossumc66ae962000-05-08 14:14:48 +0000167#endif /* _MSC_VER */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000168
Mark Hammond8235ea12002-07-19 06:55:41 +0000169/* define some ANSI types that are not defined in earlier Win headers */
170#if defined(_MSC_VER) && _MSC_VER >= 1200
171/* This file only exists in VC 6.0 or higher */
172#include <basetsd.h>
Guido van Rossum87d5e701996-05-28 22:50:17 +0000173#endif
Guido van Rossum950a1261996-07-30 17:38:17 +0000174
Mark Hammond8235ea12002-07-19 06:55:41 +0000175/* ------------------------------------------------------------------------*/
Guido van Rossum87d5e701996-05-28 22:50:17 +0000176/* The Borland compiler defines __BORLANDC__ */
Guido van Rossumcf6c0ea1996-10-21 14:52:24 +0000177/* XXX These defines are likely incomplete, but should be easy to fix. */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000178#ifdef __BORLANDC__
179#define COMPILER "[Borland]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000180
181#ifdef _WIN32
Mark Hammondc756bdb2000-08-15 22:33:59 +0000182/* tested with BCC 5.5 (__BORLANDC__ >= 0x0550)
183 */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000184
Mark Hammondc756bdb2000-08-15 22:33:59 +0000185typedef int pid_t;
Mark Hammondc756bdb2000-08-15 22:33:59 +0000186/* BCC55 seems to understand __declspec(dllimport), it is used in its
Mark Hammond8235ea12002-07-19 06:55:41 +0000187 own header files (winnt.h, ...) - so we can do nothing and get the default*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000188
Tim Peters58e0a8c2001-05-14 22:32:33 +0000189#undef HAVE_SYS_UTIME_H
190#define HAVE_UTIME_H
191#define HAVE_DIRENT_H
Mark Hammond8235ea12002-07-19 06:55:41 +0000192
193/* rename a few functions for the Borland compiler */
194#include <io.h>
195#define _chsize chsize
196#define _setmode setmode
Tim Peters7f00deb2001-04-21 03:20:47 +0000197
Mark Hammondc756bdb2000-08-15 22:33:59 +0000198#else /* !_WIN32 */
Guido van Rossum60427412000-11-13 17:29:30 +0000199#error "Only Win32 and later are supported"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000200#endif /* !_WIN32 */
201
Guido van Rossum87d5e701996-05-28 22:50:17 +0000202#endif /* BORLANDC */
203
Mark Hammond8235ea12002-07-19 06:55:41 +0000204/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000205/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
206#if defined(__GNUC__) && defined(_WIN32)
Tim Petersb26f3632002-03-22 06:32:32 +0000207/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000208 They should be complete enough to build extension modules. */
209/* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
210 bug that requires structure imports. More recent versions of the
211 compiler don't exhibit this bug.
212*/
213#if (__GNUC__==2) && (__GNUC_MINOR__<=91)
214#warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
215#endif
216
Mark Hammondc756bdb2000-08-15 22:33:59 +0000217#define COMPILER "[gcc]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000218#define hypot _hypot
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000219#define PY_LONG_LONG long long
Mark Hammondc756bdb2000-08-15 22:33:59 +0000220#endif /* GNUC */
221
Mark Hammond8235ea12002-07-19 06:55:41 +0000222/* ------------------------------------------------------------------------*/
Mark Hammondc756bdb2000-08-15 22:33:59 +0000223/* lcc-win32 defines __LCC__ */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000224#if defined(__LCC__)
Tim Petersb26f3632002-03-22 06:32:32 +0000225/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000226 They should be complete enough to build extension modules. */
227
Mark Hammondc756bdb2000-08-15 22:33:59 +0000228#define COMPILER "[lcc-win32]"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000229typedef int pid_t;
Mark Hammond8235ea12002-07-19 06:55:41 +0000230/* __declspec() is supported here too - do nothing to get the defaults */
Mark Hammondc756bdb2000-08-15 22:33:59 +0000231
Mark Hammondc756bdb2000-08-15 22:33:59 +0000232#endif /* LCC */
233
Mark Hammond8235ea12002-07-19 06:55:41 +0000234/* ------------------------------------------------------------------------*/
Guido van Rossum950a1261996-07-30 17:38:17 +0000235/* End of compilers - finish up */
236
Mark Hammond8235ea12002-07-19 06:55:41 +0000237#ifndef NO_STDIO_H
238# include <stdio.h>
Guido van Rossum361b5832000-06-30 22:17:53 +0000239#endif
Fred Drakea3f6e912000-06-29 20:44:47 +0000240
Mark Hammond8235ea12002-07-19 06:55:41 +0000241/* 64 bit ints are usually spelt __int64 unless compiler has overridden */
242#define HAVE_LONG_LONG 1
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000243#ifndef PY_LONG_LONG
244# define PY_LONG_LONG __int64
Mark Hammond8235ea12002-07-19 06:55:41 +0000245#endif
246
Tim Peters06284332002-11-11 19:44:39 +0000247/* For Windows the Python core is in a DLL by default. Test
Mark Hammond8235ea12002-07-19 06:55:41 +0000248Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
249#if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
250# define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
251# define MS_COREDLL /* deprecated old symbol */
252#endif /* !MS_NO_COREDLL && ... */
253
254/* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
255#ifdef USE_DL_EXPORT
256# define Py_BUILD_CORE
257#endif /* USE_DL_EXPORT */
258
259/* All windows compilers that use this header support __declspec */
260#define HAVE_DECLSPEC_DLL
261
262/* For an MSVC DLL, we can nominate the .lib files used by extensions */
263#ifdef MS_COREDLL
264# ifndef Py_BUILD_CORE /* not building the core - must be an ext */
265# if defined(_MSC_VER)
Tim Peters06284332002-11-11 19:44:39 +0000266 /* So MSVC users need not specify the .lib file in
Mark Hammond8235ea12002-07-19 06:55:41 +0000267 their Makefile (other compilers are generally
268 taken care of by distutils.) */
269# ifdef _DEBUG
Thomas Heller6ad6ee62004-12-01 19:39:52 +0000270# pragma comment(lib,"python25_d.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000271# else
Thomas Heller6ad6ee62004-12-01 19:39:52 +0000272# pragma comment(lib,"python25.lib")
Mark Hammond8235ea12002-07-19 06:55:41 +0000273# endif /* _DEBUG */
274# endif /* _MSC_VER */
275# endif /* Py_BUILD_CORE */
276#endif /* MS_COREDLL */
277
Guido van Rossumc66ae962000-05-08 14:14:48 +0000278#if defined(MS_WIN64)
Guido van Rossumda5cc822000-05-10 13:25:32 +0000279/* maintain "win32" sys.platform for backward compatibility of Python code,
280 the Win64 API should be close enough to the Win32 API to make this
281 preferable */
Fred Drakea3f6e912000-06-29 20:44:47 +0000282# define PLATFORM "win32"
283# define SIZEOF_VOID_P 8
284# define SIZEOF_TIME_T 8
285# define SIZEOF_OFF_T 4
286# define SIZEOF_FPOS_T 8
287# define SIZEOF_HKEY 8
Martin v. Löwis18e16552006-02-15 17:27:45 +0000288# define SIZEOF_SIZE_T 8
Fred Drakea3f6e912000-06-29 20:44:47 +0000289/* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
Martin v. Löwisb9a0f912003-03-29 10:06:18 +0000290 sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t).
Fred Drakea3f6e912000-06-29 20:44:47 +0000291 On Win64 the second condition is not true, but if fpos_t replaces off_t
292 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
293 should define this. */
294# define HAVE_LARGEFILE_SUPPORT
Guido van Rossumc66ae962000-05-08 14:14:48 +0000295#elif defined(MS_WIN32)
Fred Drakea3f6e912000-06-29 20:44:47 +0000296# define PLATFORM "win32"
Tim Peters6e13a562001-09-06 00:32:15 +0000297# define HAVE_LARGEFILE_SUPPORT
Tim Peters06284332002-11-11 19:44:39 +0000298# define SIZEOF_VOID_P 4
Tim Peters06284332002-11-11 19:44:39 +0000299# define SIZEOF_OFF_T 4
300# define SIZEOF_FPOS_T 8
301# define SIZEOF_HKEY 4
Martin v. Löwis18e16552006-02-15 17:27:45 +0000302# define SIZEOF_SIZE_T 4
Martin v. Löwisf8d76712006-03-06 16:32:05 +0000303 /* MS VS2005 changes time_t to an 64-bit type on all platforms */
Martin v. Löwisa2d4d6c2006-03-06 16:30:25 +0000304# if defined(_MSC_VER) && _MSC_VER >= 1400
305# define SIZEOF_TIME_T 8
306# else
307# define SIZEOF_TIME_T 4
308# endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000309#endif
310
Mark Hammond8235ea12002-07-19 06:55:41 +0000311#ifdef _DEBUG
312# define Py_DEBUG
313#endif
314
Guido van Rossum950a1261996-07-30 17:38:17 +0000315
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000316#ifdef MS_WIN32
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000317
Tim Peters208efe52001-06-26 22:40:47 +0000318#define SIZEOF_SHORT 2
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000319#define SIZEOF_INT 4
320#define SIZEOF_LONG 4
Guido van Rossumb00d2521998-09-17 13:19:36 +0000321#define SIZEOF_LONG_LONG 8
Thomas Wouters477c8d52006-05-27 19:21:47 +0000322#define SIZEOF_DOUBLE 8
323#define SIZEOF_FLOAT 4
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000324
Raymond Hettingercbcff932004-08-03 08:52:46 +0000325/* 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 +0000326 Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't
327 define these.
Raymond Hettingercbcff932004-08-03 08:52:46 +0000328 If some compiler does not provide them, modify the #if appropriately. */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000329#if defined(_MSC_VER)
Thomas Wouters477c8d52006-05-27 19:21:47 +0000330#if _MSC_VER > 1201
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000331#define HAVE_UINTPTR_T 1
332#define HAVE_INTPTR_T 1
Thomas Wouters477c8d52006-05-27 19:21:47 +0000333#else
334/* VC6 & eVC4 don't support the C99 LL suffix for 64-bit integer literals */
335#define Py_LL(x) x##I64
336#endif /* _MSC_VER > 1200 */
Martin v. Löwis15b23a02004-10-15 04:26:18 +0000337#endif /* _MSC_VER */
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000338
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000339#endif
340
Guido van Rossum87d5e701996-05-28 22:50:17 +0000341/* Fairly standard from here! */
342
343/* Define if on AIX 3.
344 System headers sometimes define this.
345 We just want to avoid a redefinition error message. */
346#ifndef _ALL_SOURCE
347/* #undef _ALL_SOURCE */
348#endif
349
350/* Define to empty if the keyword does not work. */
351/* #define const */
352
353/* Define if you have dirent.h. */
354/* #define DIRENT 1 */
355
356/* Define to the type of elements in the array set by `getgroups'.
357 Usually this is either `int' or `gid_t'. */
358/* #undef GETGROUPS_T */
359
360/* Define to `int' if <sys/types.h> doesn't define. */
361/* #undef gid_t */
362
363/* Define if your struct tm has tm_zone. */
364/* #undef HAVE_TM_ZONE */
365
366/* Define if you don't have tm_zone but do have the external array
367 tzname. */
368#define HAVE_TZNAME
369
Guido van Rossum87d5e701996-05-28 22:50:17 +0000370/* Define to `int' if <sys/types.h> doesn't define. */
371/* #undef mode_t */
372
373/* Define if you don't have dirent.h, but have ndir.h. */
374/* #undef NDIR */
375
376/* Define to `long' if <sys/types.h> doesn't define. */
377/* #undef off_t */
378
379/* Define to `int' if <sys/types.h> doesn't define. */
380/* #undef pid_t */
381
382/* Define if the system does not provide POSIX.1 features except
383 with this defined. */
384/* #undef _POSIX_1_SOURCE */
385
386/* Define if you need to in order for stat and other things to work. */
387/* #undef _POSIX_SOURCE */
388
389/* Define as the return type of signal handlers (int or void). */
390#define RETSIGTYPE void
391
392/* Define to `unsigned' if <sys/types.h> doesn't define. */
393/* #undef size_t */
394
Guido van Rossumdb575db2000-04-24 15:37:34 +0000395/* Define to `int' if <sys/types.h> doesn't define. */
Martin v. Löwis272cb402002-03-01 08:31:07 +0000396#if _MSC_VER + 0 >= 1300
397/* VC.NET typedefs socklen_t in ws2tcpip.h. */
398#else
Guido van Rossumdb575db2000-04-24 15:37:34 +0000399#define socklen_t int
Martin v. Löwis272cb402002-03-01 08:31:07 +0000400#endif
Guido van Rossumdb575db2000-04-24 15:37:34 +0000401
Guido van Rossum87d5e701996-05-28 22:50:17 +0000402/* Define if you have the ANSI C header files. */
403#define STDC_HEADERS 1
404
405/* Define if you don't have dirent.h, but have sys/dir.h. */
406/* #undef SYSDIR */
407
408/* Define if you don't have dirent.h, but have sys/ndir.h. */
409/* #undef SYSNDIR */
410
411/* Define if you can safely include both <sys/time.h> and <time.h>. */
412/* #undef TIME_WITH_SYS_TIME */
413
414/* Define if your <sys/time.h> declares struct tm. */
415/* #define TM_IN_SYS_TIME 1 */
416
417/* Define to `int' if <sys/types.h> doesn't define. */
418/* #undef uid_t */
419
420/* Define if the closedir function returns void instead of int. */
421/* #undef VOID_CLOSEDIR */
422
Guido van Rossum87d5e701996-05-28 22:50:17 +0000423/* Define if getpgrp() must be called as getpgrp(0)
424 and (consequently) setpgrp() as setpgrp(0, 0). */
425/* #undef GETPGRP_HAVE_ARGS */
426
427/* Define this if your time.h defines altzone */
428/* #define HAVE_ALTZONE */
429
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000430/* Define if you have the putenv function. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000431#ifndef MS_WINCE
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000432#define HAVE_PUTENV
Thomas Wouters477c8d52006-05-27 19:21:47 +0000433#endif
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000434
Guido van Rossum87d5e701996-05-28 22:50:17 +0000435/* Define if your compiler supports function prototypes */
436#define HAVE_PROTOTYPES
437
438/* Define if you can safely include both <sys/select.h> and <sys/time.h>
439 (which you can't on SCO ODT 3.0). */
440/* #undef SYS_SELECT_WITH_SYS_TIME */
441
Martin v. Löwis2befa482002-06-09 13:41:37 +0000442/* Define if you want documentation strings in extension modules */
443#define WITH_DOC_STRINGS 1
444
Guido van Rossum87d5e701996-05-28 22:50:17 +0000445/* Define if you want to compile in rudimentary thread support */
446/* #undef WITH_THREAD */
447
448/* Define if you want to use the GNU readline library */
449/* #define WITH_READLINE 1 */
450
Fredrik Lundh9b14ab32001-06-26 22:59:49 +0000451/* Define if you want to have a Unicode type. */
452#define Py_USING_UNICODE
453
454/* Define as the integral type used for Unicode representation. */
455#define PY_UNICODE_TYPE unsigned short
456
457/* Define as the size of the unicode type. */
458#define Py_UNICODE_SIZE SIZEOF_SHORT
459
Fredrik Lundh793c1972001-06-27 19:49:17 +0000460/* Define if you have a useable wchar_t type defined in wchar.h; useable
461 means wchar_t must be 16-bit unsigned type. (see
462 Include/unicodeobject.h). */
463#if Py_UNICODE_SIZE == 2
464#define HAVE_USABLE_WCHAR_T
Mark Hammondc2e85bd2002-10-03 05:10:39 +0000465
466/* Define to indicate that the Python Unicode representation can be passed
467 as-is to Win32 Wide API. */
468#define Py_WIN_WIDE_FILENAMES
Fredrik Lundh793c1972001-06-27 19:49:17 +0000469#endif
470
Tim Petersb26f3632002-03-22 06:32:32 +0000471/* Use Python's own small-block memory-allocator. */
472#define WITH_PYMALLOC 1
473
Guido van Rossum87d5e701996-05-28 22:50:17 +0000474/* Define if you have clock. */
475/* #define HAVE_CLOCK */
476
Guido van Rossum9f9fa6d1999-12-20 22:57:41 +0000477/* Define when any dynamic module loading is enabled */
478#define HAVE_DYNAMIC_LOADING
479
Guido van Rossum87d5e701996-05-28 22:50:17 +0000480/* Define if you have ftime. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000481#ifndef MS_WINCE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000482#define HAVE_FTIME
Thomas Wouters477c8d52006-05-27 19:21:47 +0000483#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000484
485/* Define if you have getpeername. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000486#define HAVE_GETPEERNAME
Guido van Rossum87d5e701996-05-28 22:50:17 +0000487
488/* Define if you have getpgrp. */
489/* #undef HAVE_GETPGRP */
490
491/* Define if you have getpid. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000492#ifndef MS_WINCE
Guido van Rossumc3397531997-05-06 15:58:18 +0000493#define HAVE_GETPID
Thomas Wouters477c8d52006-05-27 19:21:47 +0000494#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000495
496/* Define if you have gettimeofday. */
497/* #undef HAVE_GETTIMEOFDAY */
498
499/* Define if you have getwd. */
500/* #undef HAVE_GETWD */
501
502/* Define if you have lstat. */
503/* #undef HAVE_LSTAT */
504
Guido van Rossum63096d41998-04-10 21:28:49 +0000505/* Define if you have the mktime function. */
506#define HAVE_MKTIME
507
Guido van Rossum87d5e701996-05-28 22:50:17 +0000508/* Define if you have nice. */
509/* #undef HAVE_NICE */
510
511/* Define if you have readlink. */
512/* #undef HAVE_READLINK */
513
514/* Define if you have select. */
515/* #undef HAVE_SELECT */
516
517/* Define if you have setpgid. */
518/* #undef HAVE_SETPGID */
519
520/* Define if you have setpgrp. */
521/* #undef HAVE_SETPGRP */
522
523/* Define if you have setsid. */
524/* #undef HAVE_SETSID */
525
Guido van Rossumc3397531997-05-06 15:58:18 +0000526/* Define if you have setvbuf. */
527#define HAVE_SETVBUF
528
Guido van Rossum87d5e701996-05-28 22:50:17 +0000529/* Define if you have siginterrupt. */
530/* #undef HAVE_SIGINTERRUPT */
531
532/* Define if you have symlink. */
533/* #undef HAVE_SYMLINK */
534
535/* Define if you have tcgetpgrp. */
536/* #undef HAVE_TCGETPGRP */
537
538/* Define if you have tcsetpgrp. */
539/* #undef HAVE_TCSETPGRP */
540
541/* Define if you have times. */
542/* #undef HAVE_TIMES */
543
544/* Define if you have uname. */
545/* #undef HAVE_UNAME */
546
547/* Define if you have waitpid. */
548/* #undef HAVE_WAITPID */
549
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000550/* Define to 1 if you have the `wcscoll' function. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000551#ifndef MS_WINCE
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000552#define HAVE_WCSCOLL 1
Thomas Wouters477c8d52006-05-27 19:21:47 +0000553#endif
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000554
Guido van Rossum87d5e701996-05-28 22:50:17 +0000555/* Define if you have the <dlfcn.h> header file. */
556/* #undef HAVE_DLFCN_H */
557
558/* Define if you have the <fcntl.h> header file. */
Thomas Wouters477c8d52006-05-27 19:21:47 +0000559#ifndef MS_WINCE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000560#define HAVE_FCNTL_H 1
Thomas Wouters477c8d52006-05-27 19:21:47 +0000561#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +0000562
Guido van Rossum87d5e701996-05-28 22:50:17 +0000563/* Define if you have the <stdarg.h> prototypes. */
564#define HAVE_STDARG_PROTOTYPES
565
Martin v. Löwisfe393f42004-07-27 15:57:24 +0000566/* Define if you have the <stddef.h> header file. */
567#define HAVE_STDDEF_H 1
568
Guido van Rossum87d5e701996-05-28 22:50:17 +0000569/* Define if you have the <sys/audioio.h> header file. */
570/* #undef HAVE_SYS_AUDIOIO_H */
571
572/* Define if you have the <sys/param.h> header file. */
573/* #define HAVE_SYS_PARAM_H 1 */
574
575/* Define if you have the <sys/select.h> header file. */
576/* #define HAVE_SYS_SELECT_H 1 */
577
578/* Define if you have the <sys/time.h> header file. */
579/* #define HAVE_SYS_TIME_H 1 */
580
581/* Define if you have the <sys/times.h> header file. */
582/* #define HAVE_SYS_TIMES_H 1 */
583
584/* Define if you have the <sys/un.h> header file. */
585/* #define HAVE_SYS_UN_H 1 */
586
587/* Define if you have the <sys/utime.h> header file. */
Tim Peters58e0a8c2001-05-14 22:32:33 +0000588/* #define HAVE_SYS_UTIME_H 1 */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000589
590/* Define if you have the <sys/utsname.h> header file. */
591/* #define HAVE_SYS_UTSNAME_H 1 */
592
593/* Define if you have the <thread.h> header file. */
594/* #undef HAVE_THREAD_H */
595
596/* Define if you have the <unistd.h> header file. */
597/* #define HAVE_UNISTD_H 1 */
598
599/* Define if you have the <utime.h> header file. */
600/* #define HAVE_UTIME_H 1 */
601
Martin v. Löwis9c36c292002-12-21 18:34:06 +0000602/* Define if the compiler provides a wchar.h header file. */
603#define HAVE_WCHAR_H 1
604
Guido van Rossum87d5e701996-05-28 22:50:17 +0000605/* Define if you have the dl library (-ldl). */
606/* #undef HAVE_LIBDL */
607
608/* Define if you have the mpc library (-lmpc). */
609/* #undef HAVE_LIBMPC */
610
611/* Define if you have the nsl library (-lnsl). */
612#define HAVE_LIBNSL 1
613
614/* Define if you have the seq library (-lseq). */
615/* #undef HAVE_LIBSEQ */
616
617/* Define if you have the socket library (-lsocket). */
618#define HAVE_LIBSOCKET 1
619
620/* Define if you have the sun library (-lsun). */
621/* #undef HAVE_LIBSUN */
622
623/* Define if you have the termcap library (-ltermcap). */
624/* #undef HAVE_LIBTERMCAP */
625
626/* Define if you have the termlib library (-ltermlib). */
627/* #undef HAVE_LIBTERMLIB */
628
629/* Define if you have the thread library (-lthread). */
630/* #undef HAVE_LIBTHREAD */
Martin v. Löwisf84d1b92006-02-11 09:27:05 +0000631
632/* WinSock does not use a bitmask in select, and uses
633 socket handles greater than FD_SETSIZE */
634#define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
635
Guido van Rossum87d5e701996-05-28 22:50:17 +0000636#endif /* !Py_CONFIG_H */