annotate PC/pyconfig.h @ 54294:dba767bc3155 legacy-trunk

remove mention of old ctypes version
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 May 2009 20:59:09 +0000
parents d64d47ee54a1
children 558ed72d4d33
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
1 #ifndef Py_CONFIG_H
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
2 #define Py_CONFIG_H
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
3
18845
876aecef6483 Repair more now-obsolete references to config.h.
Tim Peters <tim.peters@gmail.com>
parents: 18835
diff changeset
4 /* pyconfig.h. NOT Generated automatically by configure.
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
5
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
6 This is a manually maintained version used for the Watcom,
30722
651fc8d98d99 Fix a bunch of typos in documentation, docstrings and comments.
Walter Dörwald <walter@livinglogic.de>
parents: 30030
diff changeset
7 Borland and Microsoft Visual C++ compilers. It is a
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
8 standard part of the Python distribution.
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
9
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
10 WINDOWS DEFINES:
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
11 The code specific to Windows should be wrapped around one of
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
12 the following #defines
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
13
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
14 MS_WIN64 - Code specific to the MS Win64 API
24071
8142f8d668a0 Patch #569753: Remove support for WIN16.
Martin v. Löwis <martin@v.loewis.de>
parents: 23747
diff changeset
15 MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs)
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
16 MS_WINDOWS - Code specific to Windows, but all versions.
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
17 MS_WINCE - Code specific to Windows CE
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
18 Py_ENABLE_SHARED - Code if the Python core is built as a DLL.
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
19
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
20 Also note that neither "_M_IX86" or "_MSC_VER" should be used for
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
21 any purpose other than "Windows Intel x86 specific" and "Microsoft
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
22 compiler specific". Therefore, these should be very rare.
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
23
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
24
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
25 NOTE: The following symbols are deprecated:
44084
2b21f158ab9f Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro.
Christian Heimes <christian@cheimes.de>
parents: 43540
diff changeset
26 NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
27 MS_CORE_DLL.
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
28
44084
2b21f158ab9f Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro.
Christian Heimes <christian@cheimes.de>
parents: 43540
diff changeset
29 WIN32 is still required for the locale module.
2b21f158ab9f Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro.
Christian Heimes <christian@cheimes.de>
parents: 43540
diff changeset
30
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
31 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
32
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
33 #ifdef _WIN32_WCE
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
34 #define MS_WINCE
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
35 #endif
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
36
42405
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
37 /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
38 #ifdef USE_DL_EXPORT
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
39 # define Py_BUILD_CORE
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
40 #endif /* USE_DL_EXPORT */
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
41
35968
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
42 /* Visual Studio 2005 introduces deprecation warnings for
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
43 "insecure" and POSIX functions. The insecure functions should
35972
5b0f5d976325 Fix typo.
Walter Dörwald <walter@livinglogic.de>
parents: 35968
diff changeset
44 be replaced by *_s versions (according to Microsoft); the
35968
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
45 POSIX functions by _* versions (which, according to Microsoft,
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
46 would be ISO C conforming). Neither renaming is feasible, so
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
47 we just silence the warnings. */
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
48
40379
d183d8124803 Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents: 39557
diff changeset
49 #ifndef _CRT_SECURE_NO_DEPRECATE
35968
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
50 #define _CRT_SECURE_NO_DEPRECATE 1
40379
d183d8124803 Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents: 39557
diff changeset
51 #endif
d183d8124803 Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents: 39557
diff changeset
52 #ifndef _CRT_NONSTDC_NO_DEPRECATE
35968
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
53 #define _CRT_NONSTDC_NO_DEPRECATE 1
40379
d183d8124803 Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents: 39557
diff changeset
54 #endif
35968
a1b6e6784ca5 Silence VS2005 warnings about deprecated functions.
Martin v. Löwis <martin@v.loewis.de>
parents: 34068
diff changeset
55
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
56 /* Windows CE does not have these */
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
57 #ifndef MS_WINCE
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
58 #define HAVE_IO_H
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
59 #define HAVE_SYS_UTIME_H
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
60 #define HAVE_TEMPNAM
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
61 #define HAVE_TMPFILE
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
62 #define HAVE_TMPNAM
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
63 #define HAVE_CLOCK
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
64 #define HAVE_STRERROR
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
65 #endif
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
66
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
67 #ifdef HAVE_IO_H
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
68 #include <io.h>
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
69 #endif
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
70
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
71 #define HAVE_HYPOT
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
72 #define HAVE_STRFTIME
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
73 #define DONT_HAVE_SIG_ALARM
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
74 #define DONT_HAVE_SIG_PAUSE
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
75 #define LONG_BIT 32
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
76 #define WORD_BIT 32
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
77 #define PREFIX ""
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
78 #define EXEC_PREFIX ""
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
79
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
80 #define MS_WIN32 /* only support win32 and greater. */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
81 #define MS_WINDOWS
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
82 #ifndef PYTHONPATH
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
83 # define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
84 #endif
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
85 #define NT_THREADS
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
86 #define WITH_THREAD
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
87 #ifndef NETSCAPE_PI
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
88 #define USE_SOCKET
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
89 #endif
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
90
50730
d841ff67cc61 Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis <martin@v.loewis.de>
parents: 50584
diff changeset
91 /* CE6 doesn't have strdup() but _strdup(). Assume the same for earlier versions. */
d841ff67cc61 Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis <martin@v.loewis.de>
parents: 50584
diff changeset
92 #if defined(MS_WINCE)
d841ff67cc61 Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis <martin@v.loewis.de>
parents: 50584
diff changeset
93 # include <stdlib.h>
d841ff67cc61 Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis <martin@v.loewis.de>
parents: 50584
diff changeset
94 # define strdup _strdup
d841ff67cc61 Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis <martin@v.loewis.de>
parents: 50584
diff changeset
95 #endif
d841ff67cc61 Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis <martin@v.loewis.de>
parents: 50584
diff changeset
96
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
97 #ifdef MS_WINCE
38716
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
98 /* Python uses GetVersion() to distinguish between
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
99 * Windows NT and 9x/ME where OS Unicode support is concerned.
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
100 * Windows CE supports Unicode in the same way as NT so we
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
101 * define the missing GetVersion() accordingly.
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
102 */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
103 #define GetVersion() (4)
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
104 /* Windows CE does not support environment variables */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
105 #define getenv(v) (NULL)
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
106 #define environ (NULL)
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
107 #endif
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
108
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
109 /* Compiler specific defines */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
110
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
111 /* ------------------------------------------------------------------------*/
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
112 /* Microsoft C defines _MSC_VER */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
113 #ifdef _MSC_VER
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
114
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
115 /* We want COMPILER to expand to a string containing _MSC_VER's *value*.
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
116 * This is horridly tricky, because the stringization operator only works
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
117 * on macro arguments, and doesn't evaluate macros passed *as* arguments.
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
118 * Attempts simpler than the following appear doomed to produce "_MSC_VER"
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
119 * literally in the string.
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
120 */
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
121 #define _Py_PASTE_VERSION(SUFFIX) \
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
122 ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
123 /* e.g., this produces, after compile-time string catenation,
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
124 * ("[MSC v.1200 32 bit (Intel)]")
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
125 *
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
126 * _Py_STRINGIZE(_MSC_VER) expands to
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
127 * _Py_STRINGIZE1((_MSC_VER)) expands to
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
128 * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
129 * it's scanned again for macros and so further expands to (under MSVC 6)
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
130 * _Py_STRINGIZE2(1200) which then expands to
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
131 * "1200"
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
132 */
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
133 #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
134 #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
135 #define _Py_STRINGIZE2(X) #X
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
136
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
137 /* MSVC defines _WINxx to differentiate the windows platform types
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
138
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
139 Note that for compatibility reasons _WIN32 is defined on Win32
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
140 *and* on Win64. For the same reasons, in Python, MS_WIN32 is
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
141 defined on Win32 *and* Win64. Win32 only code must therefore be
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
142 guarded as follows:
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
143 #if defined(MS_WIN32) && !defined(MS_WIN64)
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
144 Some modules are disabled on Itanium processors, therefore we
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
145 have MS_WINI64 set for those targets, otherwise MS_WINX64
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
146 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
147 #ifdef _WIN64
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
148 #define MS_WIN64
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
149 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
150
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
151 /* set the COMPILER */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
152 #ifdef MS_WIN64
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
153 #if defined(_M_IA64)
32831
4353ffc437f1 Properly check for Win64 compilers.
Martin v. Löwis <martin@v.loewis.de>
parents: 31504
diff changeset
154 #define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
155 #define MS_WINI64
42378
20bd5be24ab5 Correctly detect AMD64 architecture on VC2003
Mark Hammond <mhammond@skippinet.com.au>
parents: 42377
diff changeset
156 #elif defined(_M_X64) || defined(_M_AMD64)
41594
f6fa4708a4db Revert compiler comment to AMD64 for x64/AMD64 builds.
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 41590
diff changeset
157 #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
158 #define MS_WINX64
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
159 #else
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
160 #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
161 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
162 #endif /* MS_WIN64 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
163
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
164 /* set the version macros for the windows headers */
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
165 #ifdef MS_WINX64
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
166 /* 64 bit only runs on XP or greater */
45255
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
167 #define Py_WINVER _WIN32_WINNT_WINXP
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
168 #define Py_NTDDI NTDDI_WINXP
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
169 #else
45255
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
170 /* Python 2.6+ requires Windows 2000 or greater */
46173
c4ed664a1da1 Repair compilation for Visual Studio 2005.
Amaury Forgeot d'Arc <amauryfa@gmail.com>
parents: 46129
diff changeset
171 #ifdef _WIN32_WINNT_WIN2K
45255
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
172 #define Py_WINVER _WIN32_WINNT_WIN2K
46173
c4ed664a1da1 Repair compilation for Visual Studio 2005.
Amaury Forgeot d'Arc <amauryfa@gmail.com>
parents: 46129
diff changeset
173 #else
c4ed664a1da1 Repair compilation for Visual Studio 2005.
Amaury Forgeot d'Arc <amauryfa@gmail.com>
parents: 46129
diff changeset
174 #define Py_WINVER 0x0500
c4ed664a1da1 Repair compilation for Visual Studio 2005.
Amaury Forgeot d'Arc <amauryfa@gmail.com>
parents: 46129
diff changeset
175 #endif
45255
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
176 #define Py_NTDDI NTDDI_WIN2KSP4
42377
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
177 #endif
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
178
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
179 /* We only set these values when building Python - we don't want to force
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
180 these values on extensions, as that will affect the prototypes and
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
181 structures exposed in the Windows headers. Even when building Python, we
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
182 allow a single source file to override this - they may need access to
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
183 structures etc so it can optionally use new Windows features if it
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
184 determines at runtime they are available.
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
185 */
45255
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
186 #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_MODULE)
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
187 #ifndef NTDDI_VERSION
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
188 #define NTDDI_VERSION Py_NTDDI
329c6b2e1105 Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents: 44344
diff changeset
189 #endif
42377
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
190 #ifndef WINVER
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
191 #define WINVER Py_WINVER
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
192 #endif
42405
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
193 #ifndef _WIN32_WINNT
ce7fc08d5f47 Correct use of Py_BUILD_CORE - now make sure it is defined before it is
Mark Hammond <mhammond@skippinet.com.au>
parents: 42378
diff changeset
194 #define _WIN32_WINNT Py_WINVER
42377
1071f7076e8e In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents: 42093
diff changeset
195 #endif
41590
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
196 #endif
1c1705bf36b8 Fix problems in x64 build that were discovered by the testsuite:
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 40379
diff changeset
197
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
198 /* _W64 is not defined for VC6 or eVC4 */
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
199 #ifndef _W64
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
200 #define _W64
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
201 #endif
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
202
36501
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
203 /* Define like size_t, omitting the "unsigned" */
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
204 #ifdef MS_WIN64
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
205 typedef __int64 ssize_t;
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
206 #else
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
207 typedef _W64 int ssize_t;
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
208 #endif
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
209 #define HAVE_SSIZE_T 1
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
210
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
211 #if defined(MS_WIN32) && !defined(MS_WIN64)
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
212 #ifdef _M_IX86
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
213 #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
214 #else
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
215 #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
216 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
217 #endif /* MS_WIN32 && !MS_WIN64 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
218
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
219 typedef int pid_t;
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
220
33548
d376fe862b18 Introduced a Py_IS_NAN macro, which probably works on the major platforms
Tim Peters <tim.peters@gmail.com>
parents: 32913
diff changeset
221 #include <float.h>
d376fe862b18 Introduced a Py_IS_NAN macro, which probably works on the major platforms
Tim Peters <tim.peters@gmail.com>
parents: 32913
diff changeset
222 #define Py_IS_NAN _isnan
d376fe862b18 Introduced a Py_IS_NAN macro, which probably works on the major platforms
Tim Peters <tim.peters@gmail.com>
parents: 32913
diff changeset
223 #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
38293
688f25757104 Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents: 38233
diff changeset
224 #define Py_IS_FINITE(X) _finite(X)
46473
5bc7b20dc04a I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
Christian Heimes <christian@cheimes.de>
parents: 46174
diff changeset
225 #define copysign _copysign
5bc7b20dc04a I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
Christian Heimes <christian@cheimes.de>
parents: 46174
diff changeset
226 #define hypot _hypot
33548
d376fe862b18 Introduced a Py_IS_NAN macro, which probably works on the major platforms
Tim Peters <tim.peters@gmail.com>
parents: 32913
diff changeset
227
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
228 #endif /* _MSC_VER */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
229
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
230 /* define some ANSI types that are not defined in earlier Win headers */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
231 #if defined(_MSC_VER) && _MSC_VER >= 1200
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
232 /* This file only exists in VC 6.0 or higher */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
233 #include <basetsd.h>
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
234 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
235
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
236 /* ------------------------------------------------------------------------*/
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
237 /* The Borland compiler defines __BORLANDC__ */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
238 /* XXX These defines are likely incomplete, but should be easy to fix. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
239 #ifdef __BORLANDC__
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
240 #define COMPILER "[Borland]"
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
241
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
242 #ifdef _WIN32
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
243 /* tested with BCC 5.5 (__BORLANDC__ >= 0x0550)
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
244 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
245
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
246 typedef int pid_t;
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
247 /* BCC55 seems to understand __declspec(dllimport), it is used in its
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
248 own header files (winnt.h, ...) - so we can do nothing and get the default*/
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
249
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
250 #undef HAVE_SYS_UTIME_H
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
251 #define HAVE_UTIME_H
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
252 #define HAVE_DIRENT_H
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
253
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
254 /* rename a few functions for the Borland compiler */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
255 #include <io.h>
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
256 #define _chsize chsize
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
257 #define _setmode setmode
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
258
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
259 #else /* !_WIN32 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
260 #error "Only Win32 and later are supported"
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
261 #endif /* !_WIN32 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
262
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
263 #endif /* BORLANDC */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
264
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
265 /* ------------------------------------------------------------------------*/
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
266 /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
267 #if defined(__GNUC__) && defined(_WIN32)
22440
10846f1e1592 Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents: 22096
diff changeset
268 /* XXX These defines are likely incomplete, but should be easy to fix.
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
269 They should be complete enough to build extension modules. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
270 /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
271 bug that requires structure imports. More recent versions of the
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
272 compiler don't exhibit this bug.
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
273 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
274 #if (__GNUC__==2) && (__GNUC_MINOR__<=91)
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
275 #warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
276 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
277
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
278 #define COMPILER "[gcc]"
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
279 #define hypot _hypot
28437
871da703e4c0 Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.
Martin v. Löwis <martin@v.loewis.de>
parents: 26739
diff changeset
280 #define PY_LONG_LONG long long
42007
e8413971212d Patch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis <martin@v.loewis.de>
parents: 41831
diff changeset
281 #define PY_LLONG_MIN LLONG_MIN
e8413971212d Patch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis <martin@v.loewis.de>
parents: 41831
diff changeset
282 #define PY_LLONG_MAX LLONG_MAX
e8413971212d Patch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis <martin@v.loewis.de>
parents: 41831
diff changeset
283 #define PY_ULLONG_MAX ULLONG_MAX
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
284 #endif /* GNUC */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
285
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
286 /* ------------------------------------------------------------------------*/
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
287 /* lcc-win32 defines __LCC__ */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
288 #if defined(__LCC__)
22440
10846f1e1592 Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents: 22096
diff changeset
289 /* XXX These defines are likely incomplete, but should be easy to fix.
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
290 They should be complete enough to build extension modules. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
291
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
292 #define COMPILER "[lcc-win32]"
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
293 typedef int pid_t;
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
294 /* __declspec() is supported here too - do nothing to get the defaults */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
295
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
296 #endif /* LCC */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
297
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
298 /* ------------------------------------------------------------------------*/
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
299 /* End of compilers - finish up */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
300
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
301 #ifndef NO_STDIO_H
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
302 # include <stdio.h>
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
303 #endif
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
304
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
305 /* 64 bit ints are usually spelt __int64 unless compiler has overridden */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
306 #define HAVE_LONG_LONG 1
28437
871da703e4c0 Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.
Martin v. Löwis <martin@v.loewis.de>
parents: 26739
diff changeset
307 #ifndef PY_LONG_LONG
871da703e4c0 Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.
Martin v. Löwis <martin@v.loewis.de>
parents: 26739
diff changeset
308 # define PY_LONG_LONG __int64
42093
fd8dd74470f9 Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis <martin@v.loewis.de>
parents: 42008
diff changeset
309 # define PY_LLONG_MAX _I64_MAX
fd8dd74470f9 Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis <martin@v.loewis.de>
parents: 42008
diff changeset
310 # define PY_LLONG_MIN _I64_MIN
fd8dd74470f9 Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis <martin@v.loewis.de>
parents: 42008
diff changeset
311 # define PY_ULLONG_MAX _UI64_MAX
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
312 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
313
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
314 /* For Windows the Python core is in a DLL by default. Test
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
315 Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
316 #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
317 # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
318 # define MS_COREDLL /* deprecated old symbol */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
319 #endif /* !MS_NO_COREDLL && ... */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
320
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
321 /* All windows compilers that use this header support __declspec */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
322 #define HAVE_DECLSPEC_DLL
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
323
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
324 /* For an MSVC DLL, we can nominate the .lib files used by extensions */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
325 #ifdef MS_COREDLL
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
326 # ifndef Py_BUILD_CORE /* not building the core - must be an ext */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
327 # if defined(_MSC_VER)
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
328 /* So MSVC users need not specify the .lib file in
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
329 their Makefile (other compilers are generally
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
330 taken care of by distutils.) */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
331 # ifdef _DEBUG
49399
283e54264c0d Update version number to 2.7.
Martin v. Löwis <martin@v.loewis.de>
parents: 47666
diff changeset
332 # pragma comment(lib,"python27_d.lib")
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
333 # else
49399
283e54264c0d Update version number to 2.7.
Martin v. Löwis <martin@v.loewis.de>
parents: 47666
diff changeset
334 # pragma comment(lib,"python27.lib")
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
335 # endif /* _DEBUG */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
336 # endif /* _MSC_VER */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
337 # endif /* Py_BUILD_CORE */
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
338 #endif /* MS_COREDLL */
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
339
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
340 #if defined(MS_WIN64)
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
341 /* maintain "win32" sys.platform for backward compatibility of Python code,
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
342 the Win64 API should be close enough to the Win32 API to make this
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
343 preferable */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
344 # define PLATFORM "win32"
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
345 # define SIZEOF_VOID_P 8
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
346 # define SIZEOF_TIME_T 8
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
347 # define SIZEOF_OFF_T 4
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
348 # define SIZEOF_FPOS_T 8
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
349 # define SIZEOF_HKEY 8
36501
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
350 # define SIZEOF_SIZE_T 8
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
351 /* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
28437
871da703e4c0 Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.
Martin v. Löwis <martin@v.loewis.de>
parents: 26739
diff changeset
352 sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t).
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
353 On Win64 the second condition is not true, but if fpos_t replaces off_t
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
354 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
355 should define this. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
356 # define HAVE_LARGEFILE_SUPPORT
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
357 #elif defined(MS_WIN32)
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
358 # define PLATFORM "win32"
19754
e1f1e9ebf050 Enable large file support on Win32 systems.
Tim Peters <tim.peters@gmail.com>
parents: 19568
diff changeset
359 # define HAVE_LARGEFILE_SUPPORT
26149
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
360 # define SIZEOF_VOID_P 4
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
361 # define SIZEOF_OFF_T 4
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
362 # define SIZEOF_FPOS_T 8
58083d8ea9a5 Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents: 25535
diff changeset
363 # define SIZEOF_HKEY 4
36501
7fdc639bc5b4 Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents: 36476
diff changeset
364 # define SIZEOF_SIZE_T 4
36854
8e0f0fb14d35 lower-case time_t.
Martin v. Löwis <martin@v.loewis.de>
parents: 36853
diff changeset
365 /* MS VS2005 changes time_t to an 64-bit type on all platforms */
36853
9b13da647a5e Patch #1437769: notice that time_t is a 64-bit type in VS2005
Martin v. Löwis <martin@v.loewis.de>
parents: 36501
diff changeset
366 # if defined(_MSC_VER) && _MSC_VER >= 1400
9b13da647a5e Patch #1437769: notice that time_t is a 64-bit type in VS2005
Martin v. Löwis <martin@v.loewis.de>
parents: 36501
diff changeset
367 # define SIZEOF_TIME_T 8
9b13da647a5e Patch #1437769: notice that time_t is a 64-bit type in VS2005
Martin v. Löwis <martin@v.loewis.de>
parents: 36501
diff changeset
368 # else
9b13da647a5e Patch #1437769: notice that time_t is a 64-bit type in VS2005
Martin v. Löwis <martin@v.loewis.de>
parents: 36501
diff changeset
369 # define SIZEOF_TIME_T 4
9b13da647a5e Patch #1437769: notice that time_t is a 64-bit type in VS2005
Martin v. Löwis <martin@v.loewis.de>
parents: 36501
diff changeset
370 # endif
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
371 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
372
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
373 #ifdef _DEBUG
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
374 # define Py_DEBUG
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
375 #endif
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24275
diff changeset
376
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
377
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
378 #ifdef MS_WIN32
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
379
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
380 #define SIZEOF_SHORT 2
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
381 #define SIZEOF_INT 4
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
382 #define SIZEOF_LONG 4
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
383 #define SIZEOF_LONG_LONG 8
38233
95910bc65f6b Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Tim Peters <tim.peters@gmail.com>
parents: 38232
diff changeset
384 #define SIZEOF_DOUBLE 8
95910bc65f6b Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Tim Peters <tim.peters@gmail.com>
parents: 38232
diff changeset
385 #define SIZEOF_FLOAT 4
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
386
32913
89159a1268cc Restore compilation on MSVC++ 6.0
Raymond Hettinger <python@rcn.com>
parents: 32833
diff changeset
387 /* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
388 Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
389 define these.
32913
89159a1268cc Restore compilation on MSVC++ 6.0
Raymond Hettinger <python@rcn.com>
parents: 32833
diff changeset
390 If some compiler does not provide them, modify the #if appropriately. */
33762
26fd00b368f1 Patch #1020042: Only define HAVE_UINTPTR_T for VC 7.x.
Martin v. Löwis <martin@v.loewis.de>
parents: 33548
diff changeset
391 #if defined(_MSC_VER)
43540
81f598a76f59 Bug #1216: Restore support for Visual Studio 2002.
Martin v. Löwis <martin@v.loewis.de>
parents: 42405
diff changeset
392 #if _MSC_VER > 1300
32833
dac9d0664fc3 Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents: 32831
diff changeset
393 #define HAVE_UINTPTR_T 1
dac9d0664fc3 Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents: 32831
diff changeset
394 #define HAVE_INTPTR_T 1
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
395 #else
43540
81f598a76f59 Bug #1216: Restore support for Visual Studio 2002.
Martin v. Löwis <martin@v.loewis.de>
parents: 42405
diff changeset
396 /* VC6, VS 2002 and eVC4 don't support the C99 LL suffix for 64-bit integer literals */
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
397 #define Py_LL(x) x##I64
38233
95910bc65f6b Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Tim Peters <tim.peters@gmail.com>
parents: 38232
diff changeset
398 #endif /* _MSC_VER > 1200 */
33762
26fd00b368f1 Patch #1020042: Only define HAVE_UINTPTR_T for VC 7.x.
Martin v. Löwis <martin@v.loewis.de>
parents: 33548
diff changeset
399 #endif /* _MSC_VER */
32833
dac9d0664fc3 Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents: 32831
diff changeset
400
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
401 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
402
52233
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
403 /* define signed and unsigned exact-width 32-bit and 64-bit types, used in the
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
404 implementation of Python long integers. */
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
405 #ifndef PY_UINT32_T
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
406 #if SIZEOF_INT == 4
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
407 #define HAVE_UINT32_T 1
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
408 #define PY_UINT32_T unsigned int
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
409 #elif SIZEOF_LONG == 4
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
410 #define HAVE_UINT32_T 1
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
411 #define PY_UINT32_T unsigned long
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
412 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
413 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
414
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
415 #ifndef PY_UINT64_T
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
416 #if SIZEOF_LONG_LONG == 8
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
417 #define HAVE_UINT64_T 1
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
418 #define PY_UINT64_T unsigned PY_LONG_LONG
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
419 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
420 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
421
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
422 #ifndef PY_INT32_T
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
423 #if SIZEOF_INT == 4
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
424 #define HAVE_INT32_T 1
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
425 #define PY_INT32_T int
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
426 #elif SIZEOF_LONG == 4
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
427 #define HAVE_INT32_T 1
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
428 #define PY_INT32_T long
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
429 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
430 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
431
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
432 #ifndef PY_INT64_T
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
433 #if SIZEOF_LONG_LONG == 8
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
434 #define HAVE_INT64_T 1
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
435 #define PY_INT64_T PY_LONG_LONG
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
436 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
437 #endif
9b358eae532a Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents: 50730
diff changeset
438
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
439 /* Fairly standard from here! */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
440
44344
1d69aabf6f7f Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents: 44208
diff changeset
441 /* Define to 1 if you have the `copysign' function. */
46473
5bc7b20dc04a I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
Christian Heimes <christian@cheimes.de>
parents: 46174
diff changeset
442 #define HAVE_COPYSIGN 1
44344
1d69aabf6f7f Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents: 44208
diff changeset
443
50584
3a540ed795d3 isinf and isnan are macros, not functions; fix configure script
Mark Dickinson <dickinsm@gmail.com>
parents: 49399
diff changeset
444 /* Define to 1 if you have the `isinf' macro. */
3a540ed795d3 isinf and isnan are macros, not functions; fix configure script
Mark Dickinson <dickinsm@gmail.com>
parents: 49399
diff changeset
445 #define HAVE_DECL_ISINF 1
44344
1d69aabf6f7f Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents: 44208
diff changeset
446
1d69aabf6f7f Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents: 44208
diff changeset
447 /* Define to 1 if you have the `isnan' function. */
50584
3a540ed795d3 isinf and isnan are macros, not functions; fix configure script
Mark Dickinson <dickinsm@gmail.com>
parents: 49399
diff changeset
448 #define HAVE_DECL_ISNAN 1
44344
1d69aabf6f7f Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents: 44208
diff changeset
449
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
450 /* Define if on AIX 3.
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
451 System headers sometimes define this.
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
452 We just want to avoid a redefinition error message. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
453 #ifndef _ALL_SOURCE
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
454 /* #undef _ALL_SOURCE */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
455 #endif
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
456
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
457 /* Define to empty if the keyword does not work. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
458 /* #define const */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
459
38716
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
460 /* Define to 1 if you have the <conio.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
461 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
462 #define HAVE_CONIO_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
463 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
464
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
465 /* Define to 1 if you have the <direct.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
466 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
467 #define HAVE_DIRECT_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
468 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
469
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
470 /* Define if you have dirent.h. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
471 /* #define DIRENT 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
472
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
473 /* Define to the type of elements in the array set by `getgroups'.
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
474 Usually this is either `int' or `gid_t'. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
475 /* #undef GETGROUPS_T */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
476
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
477 /* Define to `int' if <sys/types.h> doesn't define. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
478 /* #undef gid_t */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
479
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
480 /* Define if your struct tm has tm_zone. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
481 /* #undef HAVE_TM_ZONE */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
482
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
483 /* Define if you don't have tm_zone but do have the external array
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
484 tzname. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
485 #define HAVE_TZNAME
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
486
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
487 /* Define to `int' if <sys/types.h> doesn't define. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
488 /* #undef mode_t */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
489
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
490 /* Define if you don't have dirent.h, but have ndir.h. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
491 /* #undef NDIR */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
492
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
493 /* Define to `long' if <sys/types.h> doesn't define. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
494 /* #undef off_t */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
495
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
496 /* Define to `int' if <sys/types.h> doesn't define. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
497 /* #undef pid_t */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
498
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
499 /* Define if the system does not provide POSIX.1 features except
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
500 with this defined. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
501 /* #undef _POSIX_1_SOURCE */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
502
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
503 /* Define if you need to in order for stat and other things to work. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
504 /* #undef _POSIX_SOURCE */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
505
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
506 /* Define as the return type of signal handlers (int or void). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
507 #define RETSIGTYPE void
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
508
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
509 /* Define to `unsigned' if <sys/types.h> doesn't define. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
510 /* #undef size_t */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
511
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
512 /* Define if you have the ANSI C header files. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
513 #define STDC_HEADERS 1
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
514
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
515 /* Define if you don't have dirent.h, but have sys/dir.h. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
516 /* #undef SYSDIR */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
517
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
518 /* Define if you don't have dirent.h, but have sys/ndir.h. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
519 /* #undef SYSNDIR */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
520
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
521 /* Define if you can safely include both <sys/time.h> and <time.h>. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
522 /* #undef TIME_WITH_SYS_TIME */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
523
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
524 /* Define if your <sys/time.h> declares struct tm. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
525 /* #define TM_IN_SYS_TIME 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
526
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
527 /* Define to `int' if <sys/types.h> doesn't define. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
528 /* #undef uid_t */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
529
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
530 /* Define if the closedir function returns void instead of int. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
531 /* #undef VOID_CLOSEDIR */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
532
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
533 /* Define if getpgrp() must be called as getpgrp(0)
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
534 and (consequently) setpgrp() as setpgrp(0, 0). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
535 /* #undef GETPGRP_HAVE_ARGS */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
536
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
537 /* Define this if your time.h defines altzone */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
538 /* #define HAVE_ALTZONE */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
539
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
540 /* Define if you have the putenv function. */
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
541 #ifndef MS_WINCE
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
542 #define HAVE_PUTENV
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
543 #endif
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
544
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
545 /* Define if your compiler supports function prototypes */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
546 #define HAVE_PROTOTYPES
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
547
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
548 /* Define if you can safely include both <sys/select.h> and <sys/time.h>
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
549 (which you can't on SCO ODT 3.0). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
550 /* #undef SYS_SELECT_WITH_SYS_TIME */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
551
23747
4d593254ba93 Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents: 23202
diff changeset
552 /* Define if you want documentation strings in extension modules */
4d593254ba93 Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents: 23202
diff changeset
553 #define WITH_DOC_STRINGS 1
4d593254ba93 Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents: 23202
diff changeset
554
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
555 /* Define if you want to compile in rudimentary thread support */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
556 /* #undef WITH_THREAD */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
557
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
558 /* Define if you want to use the GNU readline library */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
559 /* #define WITH_READLINE 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
560
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
561 /* Define if you want to have a Unicode type. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
562 #define Py_USING_UNICODE
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
563
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
564 /* Define as the size of the unicode type. */
41831
ff7befe919b5 Remove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
Mark Hammond <mhammond@skippinet.com.au>
parents: 41594
diff changeset
565 /* This is enough for unicodeobject.h to do the "right thing" on Windows. */
ff7befe919b5 Remove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
Mark Hammond <mhammond@skippinet.com.au>
parents: 41594
diff changeset
566 #define Py_UNICODE_SIZE 2
25535
861065256487 Patch 594001: PEP 277 - Unicode file name support for Windows NT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
567
22440
10846f1e1592 Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents: 22096
diff changeset
568 /* Use Python's own small-block memory-allocator. */
10846f1e1592 Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents: 22096
diff changeset
569 #define WITH_PYMALLOC 1
10846f1e1592 Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents: 22096
diff changeset
570
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
571 /* Define if you have clock. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
572 /* #define HAVE_CLOCK */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
573
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
574 /* Define when any dynamic module loading is enabled */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
575 #define HAVE_DYNAMIC_LOADING
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
576
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
577 /* Define if you have ftime. */
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
578 #ifndef MS_WINCE
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
579 #define HAVE_FTIME
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
580 #endif
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
581
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
582 /* Define if you have getpeername. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
583 #define HAVE_GETPEERNAME
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
584
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
585 /* Define if you have getpgrp. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
586 /* #undef HAVE_GETPGRP */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
587
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
588 /* Define if you have getpid. */
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
589 #ifndef MS_WINCE
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
590 #define HAVE_GETPID
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
591 #endif
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
592
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
593 /* Define if you have gettimeofday. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
594 /* #undef HAVE_GETTIMEOFDAY */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
595
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
596 /* Define if you have getwd. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
597 /* #undef HAVE_GETWD */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
598
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
599 /* Define if you have lstat. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
600 /* #undef HAVE_LSTAT */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
601
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
602 /* Define if you have the mktime function. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
603 #define HAVE_MKTIME
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
604
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
605 /* Define if you have nice. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
606 /* #undef HAVE_NICE */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
607
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
608 /* Define if you have readlink. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
609 /* #undef HAVE_READLINK */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
610
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
611 /* Define if you have select. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
612 /* #undef HAVE_SELECT */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
613
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
614 /* Define if you have setpgid. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
615 /* #undef HAVE_SETPGID */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
616
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
617 /* Define if you have setpgrp. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
618 /* #undef HAVE_SETPGRP */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
619
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
620 /* Define if you have setsid. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
621 /* #undef HAVE_SETSID */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
622
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
623 /* Define if you have setvbuf. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
624 #define HAVE_SETVBUF
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
625
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
626 /* Define if you have siginterrupt. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
627 /* #undef HAVE_SIGINTERRUPT */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
628
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
629 /* Define if you have symlink. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
630 /* #undef HAVE_SYMLINK */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
631
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
632 /* Define if you have tcgetpgrp. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
633 /* #undef HAVE_TCGETPGRP */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
634
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
635 /* Define if you have tcsetpgrp. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
636 /* #undef HAVE_TCSETPGRP */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
637
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
638 /* Define if you have times. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
639 /* #undef HAVE_TIMES */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
640
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
641 /* Define if you have uname. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
642 /* #undef HAVE_UNAME */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
643
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
644 /* Define if you have waitpid. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
645 /* #undef HAVE_WAITPID */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
646
26739
c65e8cb91f4c Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents: 26151
diff changeset
647 /* Define to 1 if you have the `wcscoll' function. */
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
648 #ifndef MS_WINCE
26739
c65e8cb91f4c Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents: 26151
diff changeset
649 #define HAVE_WCSCOLL 1
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
650 #endif
26739
c65e8cb91f4c Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents: 26151
diff changeset
651
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
652 /* Define if you have the <dlfcn.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
653 /* #undef HAVE_DLFCN_H */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
654
38716
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
655 /* Define to 1 if you have the <errno.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
656 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
657 #define HAVE_ERRNO_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
658 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
659
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
660 /* Define if you have the <fcntl.h> header file. */
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
661 #ifndef MS_WINCE
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
662 #define HAVE_FCNTL_H 1
38232
aa620856e8a3 Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents: 36854
diff changeset
663 #endif
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
664
38716
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
665 /* Define to 1 if you have the <process.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
666 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
667 #define HAVE_PROCESS_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
668 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
669
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
670 /* Define to 1 if you have the <signal.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
671 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
672 #define HAVE_SIGNAL_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
673 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
674
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
675 /* Define if you have the <stdarg.h> prototypes. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
676 #define HAVE_STDARG_PROTOTYPES
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
677
32833
dac9d0664fc3 Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents: 32831
diff changeset
678 /* Define if you have the <stddef.h> header file. */
dac9d0664fc3 Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents: 32831
diff changeset
679 #define HAVE_STDDEF_H 1
dac9d0664fc3 Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents: 32831
diff changeset
680
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
681 /* Define if you have the <sys/audioio.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
682 /* #undef HAVE_SYS_AUDIOIO_H */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
683
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
684 /* Define if you have the <sys/param.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
685 /* #define HAVE_SYS_PARAM_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
686
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
687 /* Define if you have the <sys/select.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
688 /* #define HAVE_SYS_SELECT_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
689
38716
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
690 /* Define to 1 if you have the <sys/stat.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
691 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
692 #define HAVE_SYS_STAT_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
693 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
694
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
695 /* Define if you have the <sys/time.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
696 /* #define HAVE_SYS_TIME_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
697
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
698 /* Define if you have the <sys/times.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
699 /* #define HAVE_SYS_TIMES_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
700
38716
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
701 /* Define to 1 if you have the <sys/types.h> header file. */
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
702 #ifndef MS_WINCE
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
703 #define HAVE_SYS_TYPES_H 1
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
704 #endif
42808526511c Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents: 38689
diff changeset
705
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
706 /* Define if you have the <sys/un.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
707 /* #define HAVE_SYS_UN_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
708
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
709 /* Define if you have the <sys/utime.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
710 /* #define HAVE_SYS_UTIME_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
711
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
712 /* Define if you have the <sys/utsname.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
713 /* #define HAVE_SYS_UTSNAME_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
714
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
715 /* Define if you have the <thread.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
716 /* #undef HAVE_THREAD_H */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
717
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
718 /* Define if you have the <unistd.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
719 /* #define HAVE_UNISTD_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
720
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
721 /* Define if you have the <utime.h> header file. */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
722 /* #define HAVE_UTIME_H 1 */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
723
26739
c65e8cb91f4c Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents: 26151
diff changeset
724 /* Define if the compiler provides a wchar.h header file. */
c65e8cb91f4c Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents: 26151
diff changeset
725 #define HAVE_WCHAR_H 1
c65e8cb91f4c Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents: 26151
diff changeset
726
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
727 /* Define if you have the dl library (-ldl). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
728 /* #undef HAVE_LIBDL */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
729
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
730 /* Define if you have the mpc library (-lmpc). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
731 /* #undef HAVE_LIBMPC */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
732
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
733 /* Define if you have the nsl library (-lnsl). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
734 #define HAVE_LIBNSL 1
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
735
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
736 /* Define if you have the seq library (-lseq). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
737 /* #undef HAVE_LIBSEQ */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
738
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
739 /* Define if you have the socket library (-lsocket). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
740 #define HAVE_LIBSOCKET 1
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
741
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
742 /* Define if you have the sun library (-lsun). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
743 /* #undef HAVE_LIBSUN */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
744
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
745 /* Define if you have the termcap library (-ltermcap). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
746 /* #undef HAVE_LIBTERMCAP */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
747
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
748 /* Define if you have the termlib library (-ltermlib). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
749 /* #undef HAVE_LIBTERMLIB */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
750
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
751 /* Define if you have the thread library (-lthread). */
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
752 /* #undef HAVE_LIBTHREAD */
36476
c073dffbe70e Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis <martin@v.loewis.de>
parents: 35972
diff changeset
753
c073dffbe70e Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis <martin@v.loewis.de>
parents: 35972
diff changeset
754 /* WinSock does not use a bitmask in select, and uses
c073dffbe70e Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis <martin@v.loewis.de>
parents: 35972
diff changeset
755 socket handles greater than FD_SETSIZE */
c073dffbe70e Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis <martin@v.loewis.de>
parents: 35972
diff changeset
756 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
c073dffbe70e Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis <martin@v.loewis.de>
parents: 35972
diff changeset
757
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff changeset
758 #endif /* !Py_CONFIG_H */