Mercurial > cpython-lru_cache-weakref
annotate PC/pyconfig.h @ 79675:c0a2294de787 2.7
Issue #16199: Backport 2to3 typo fix from 3.2.
| author | Chris Jerdonek <chris.jerdonek@gmail.com> |
|---|---|
| date | Thu, 11 Oct 2012 16:15:46 -0700 |
| parents | f5bf91af01ca |
| children |
| 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 | 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 |
|
40380
a037fa8f8458
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents:
38716
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 |
|
40380
a037fa8f8458
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents:
38716
diff
changeset
|
51 #endif |
|
a037fa8f8458
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents:
38716
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 |
|
40380
a037fa8f8458
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
Martin v. Löwis <martin@v.loewis.de>
parents:
38716
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 |
|
50788
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
47666
diff
changeset
|
91 /* CE6 doesn't have strdup() but _strdup(). Assume the same for earlier versions. */ |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
47666
diff
changeset
|
92 #if defined(MS_WINCE) |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
47666
diff
changeset
|
93 # include <stdlib.h> |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
47666
diff
changeset
|
94 # define strdup _strdup |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
47666
diff
changeset
|
95 #endif |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
47666
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 /* 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
|
99 #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
|
100 #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
|
101 #endif |
|
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
102 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
103 /* Compiler specific defines */ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
104 |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
105 /* ------------------------------------------------------------------------*/ |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
106 /* 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
|
107 #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
|
108 |
|
26149
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
109 /* 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
|
110 * 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
|
111 * 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
|
112 * 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
|
113 * 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
|
114 */ |
|
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
115 #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
|
116 ("[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
|
117 /* 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
|
118 * ("[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
|
119 * |
|
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
120 * _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
|
121 * _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
|
122 * _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
|
123 * 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
|
124 * _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
|
125 * "1200" |
|
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
126 */ |
|
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
127 #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
|
128 #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
|
129 #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
|
130 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
131 /* 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
|
132 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
133 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
|
134 *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
|
135 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
|
136 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
|
137 #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
|
138 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
|
139 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
|
140 */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
141 #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
|
142 #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
|
143 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
144 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
145 /* 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
|
146 #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
|
147 #if defined(_M_IA64) |
|
32831
4353ffc437f1
Properly check for Win64 compilers.
Martin v. Löwis <martin@v.loewis.de>
parents:
31504
diff
changeset
|
148 #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
|
149 #define MS_WINI64 |
|
42378
20bd5be24ab5
Correctly detect AMD64 architecture on VC2003
Mark Hammond <mhammond@skippinet.com.au>
parents:
42377
diff
changeset
|
150 #elif defined(_M_X64) || defined(_M_AMD64) |
|
32831
4353ffc437f1
Properly check for Win64 compilers.
Martin v. Löwis <martin@v.loewis.de>
parents:
31504
diff
changeset
|
151 #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
|
152 #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
|
153 #else |
|
26149
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
154 #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
|
155 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
156 #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
|
157 |
|
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 /* 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
|
159 #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
|
160 /* 64 bit only runs on XP or greater */ |
|
45255
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
161 #define Py_WINVER _WIN32_WINNT_WINXP |
|
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
162 #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
|
163 #else |
|
45255
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
164 /* 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
|
165 #ifdef _WIN32_WINNT_WIN2K |
|
45255
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
166 #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
|
167 #else |
|
c4ed664a1da1
Repair compilation for Visual Studio 2005.
Amaury Forgeot d'Arc <amauryfa@gmail.com>
parents:
46129
diff
changeset
|
168 #define Py_WINVER 0x0500 |
|
c4ed664a1da1
Repair compilation for Visual Studio 2005.
Amaury Forgeot d'Arc <amauryfa@gmail.com>
parents:
46129
diff
changeset
|
169 #endif |
|
45255
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
170 #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
|
171 #endif |
|
1071f7076e8e
In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents:
42093
diff
changeset
|
172 |
|
1071f7076e8e
In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents:
42093
diff
changeset
|
173 /* 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
|
174 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
|
175 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
|
176 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
|
177 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
|
178 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
|
179 */ |
|
45255
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
180 #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
|
181 #ifndef NTDDI_VERSION |
|
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
182 #define NTDDI_VERSION Py_NTDDI |
|
329c6b2e1105
Issue #1706: Require Windows 2000+
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
183 #endif |
|
42377
1071f7076e8e
In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents:
42093
diff
changeset
|
184 #ifndef WINVER |
|
1071f7076e8e
In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
Mark Hammond <mhammond@skippinet.com.au>
parents:
42093
diff
changeset
|
185 #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
|
186 #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
|
187 #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
|
188 #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
|
189 #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
|
190 #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
|
191 |
|
38232
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
192 /* _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
|
193 #ifndef _W64 |
|
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
194 #define _W64 |
|
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
195 #endif |
|
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
196 |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
197 /* Define like size_t, omitting the "unsigned" */ |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
198 #ifdef MS_WIN64 |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
199 typedef __int64 ssize_t; |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
200 #else |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
201 typedef _W64 int ssize_t; |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
202 #endif |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
203 #define HAVE_SSIZE_T 1 |
|
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
204 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
205 #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
|
206 #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
|
207 #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
|
208 #else |
|
26149
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
209 #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
|
210 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
211 #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
|
212 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
213 typedef int pid_t; |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
214 |
|
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
|
215 #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
|
216 #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
|
217 #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
|
218 #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
|
219 #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
|
220 #define hypot _hypot |
|
38689
77b6589fadb9
Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005.
Kristján Valur Jónsson <kristjan@ccpgames.com>
parents:
38293
diff
changeset
|
221 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
222 #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
|
223 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
224 /* 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
|
225 #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
|
226 /* 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
|
227 #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
|
228 #endif |
|
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 /* ------------------------------------------------------------------------*/ |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
231 /* 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
|
232 /* 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
|
233 #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
|
234 #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
|
235 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
236 #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
|
237 /* 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
|
238 */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
239 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
240 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
|
241 /* 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
|
242 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
|
243 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
244 #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
|
245 #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
|
246 #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
|
247 |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
248 /* 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
|
249 #include <io.h> |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
250 #define _chsize chsize |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
251 #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
|
252 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
253 #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
|
254 #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
|
255 #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
|
256 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
257 #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
|
258 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
259 /* ------------------------------------------------------------------------*/ |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
260 /* 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
|
261 #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
|
262 /* 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
|
263 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
|
264 /* 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
|
265 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
|
266 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
|
267 */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
268 #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
|
269 #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
|
270 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
271 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
272 #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
|
273 #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
|
274 #define PY_LONG_LONG long long |
|
42009
7c9225da5f61
Patch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis <martin@v.loewis.de>
parents:
40380
diff
changeset
|
275 #define PY_LLONG_MIN LLONG_MIN |
|
7c9225da5f61
Patch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis <martin@v.loewis.de>
parents:
40380
diff
changeset
|
276 #define PY_LLONG_MAX LLONG_MAX |
|
7c9225da5f61
Patch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis <martin@v.loewis.de>
parents:
40380
diff
changeset
|
277 #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
|
278 #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
|
279 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
280 /* ------------------------------------------------------------------------*/ |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
281 /* 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
|
282 #if defined(__LCC__) |
|
22440
10846f1e1592
Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents:
22096
diff
changeset
|
283 /* 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
|
284 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
|
285 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
286 #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
|
287 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
|
288 /* __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
|
289 |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
290 #endif /* LCC */ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
291 |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
292 /* ------------------------------------------------------------------------*/ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
293 /* 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
|
294 |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
295 #ifndef NO_STDIO_H |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
296 # 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
|
297 #endif |
|
24315
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 /* 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
|
300 #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
|
301 #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
|
302 # define PY_LONG_LONG __int64 |
|
42094
44b44b0a9fe2
Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis <martin@v.loewis.de>
parents:
42009
diff
changeset
|
303 # define PY_LLONG_MAX _I64_MAX |
|
44b44b0a9fe2
Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis <martin@v.loewis.de>
parents:
42009
diff
changeset
|
304 # define PY_LLONG_MIN _I64_MIN |
|
44b44b0a9fe2
Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis <martin@v.loewis.de>
parents:
42009
diff
changeset
|
305 # 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
|
306 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
307 |
|
26149
58083d8ea9a5
Some help for SF 614770: MSVC 7.0 compiler support
Tim Peters <tim.peters@gmail.com>
parents:
25535
diff
changeset
|
308 /* 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
|
309 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
|
310 #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
|
311 # 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
|
312 # 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
|
313 #endif /* !MS_NO_COREDLL && ... */ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
314 |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
315 /* 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
|
316 #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
|
317 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
318 /* 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
|
319 #ifdef MS_COREDLL |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
320 # 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
|
321 # 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
|
322 /* 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
|
323 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
|
324 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
|
325 # ifdef _DEBUG |
|
49399
283e54264c0d
Update version number to 2.7.
Martin v. Löwis <martin@v.loewis.de>
parents:
47666
diff
changeset
|
326 # 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
|
327 # else |
|
49399
283e54264c0d
Update version number to 2.7.
Martin v. Löwis <martin@v.loewis.de>
parents:
47666
diff
changeset
|
328 # 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
|
329 # endif /* _DEBUG */ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
330 # endif /* _MSC_VER */ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
331 # endif /* Py_BUILD_CORE */ |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
332 #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
|
333 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
334 #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
|
335 /* 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
|
336 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
|
337 preferable */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
338 # 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
|
339 # 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
|
340 # 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
|
341 # 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
|
342 # 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
|
343 # define SIZEOF_HKEY 8 |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
344 # define SIZEOF_SIZE_T 8 |
|
75668
f5bf91af01ca
- rename configure.in to configure.ac
Matthias Klose <doko@ubuntu.com>
parents:
72961
diff
changeset
|
345 /* configure.ac 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
|
346 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
|
347 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
|
348 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
|
349 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
|
350 # 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
|
351 #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
|
352 # define PLATFORM "win32" |
|
19754
e1f1e9ebf050
Enable large file support on Win32 systems.
Tim Peters <tim.peters@gmail.com>
parents:
19568
diff
changeset
|
353 # 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
|
354 # 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
|
355 # 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
|
356 # 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
|
357 # define SIZEOF_HKEY 4 |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36476
diff
changeset
|
358 # define SIZEOF_SIZE_T 4 |
| 36854 | 359 /* 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
|
360 # 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
|
361 # 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
|
362 # 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
|
363 # 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
|
364 # 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
|
365 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
366 |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
367 #ifdef _DEBUG |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
368 # define Py_DEBUG |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
369 #endif |
|
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24275
diff
changeset
|
370 |
|
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 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
372 #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
|
373 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
374 #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
|
375 #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
|
376 #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
|
377 #define SIZEOF_LONG_LONG 8 |
|
38233
95910bc65f6b
Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Tim Peters <tim.peters@gmail.com>
parents:
38232
diff
changeset
|
378 #define SIZEOF_DOUBLE 8 |
|
95910bc65f6b
Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Tim Peters <tim.peters@gmail.com>
parents:
38232
diff
changeset
|
379 #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
|
380 |
|
32913
89159a1268cc
Restore compilation on MSVC++ 6.0
Raymond Hettinger <python@rcn.com>
parents:
32833
diff
changeset
|
381 /* 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
|
382 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
|
383 define these. |
|
32913
89159a1268cc
Restore compilation on MSVC++ 6.0
Raymond Hettinger <python@rcn.com>
parents:
32833
diff
changeset
|
384 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
|
385 #if defined(_MSC_VER) |
|
43541
fc048b72bf3d
Bug #1216: Restore support for Visual Studio 2002.
Martin v. Löwis <martin@v.loewis.de>
parents:
42094
diff
changeset
|
386 #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
|
387 #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
|
388 #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
|
389 #else |
|
43541
fc048b72bf3d
Bug #1216: Restore support for Visual Studio 2002.
Martin v. Löwis <martin@v.loewis.de>
parents:
42094
diff
changeset
|
390 /* 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
|
391 #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
|
392 #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
|
393 #endif /* _MSC_VER */ |
|
32833
dac9d0664fc3
Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents:
32831
diff
changeset
|
394 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
395 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
396 |
|
52233
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
397 /* 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
|
398 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
|
399 #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
|
400 #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
|
401 #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
|
402 #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
|
403 #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
|
404 #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
|
405 #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
|
406 #endif |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
407 #endif |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
408 |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
409 #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
|
410 #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
|
411 #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
|
412 #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
|
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 #endif |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
415 |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
416 #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
|
417 #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
|
418 #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
|
419 #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
|
420 #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
|
421 #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
|
422 #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
|
423 #endif |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
424 #endif |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
425 |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
426 #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
|
427 #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
|
428 #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
|
429 #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
|
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 #endif |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50730
diff
changeset
|
432 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
433 /* 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
|
434 |
|
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
|
435 /* 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
|
436 #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
|
437 |
|
53732
bc1d196836a4
Issue #5724: Fix cmath failures on Solaris 10.
Mark Dickinson <dickinsm@gmail.com>
parents:
50788
diff
changeset
|
438 /* Define to 1 if you have the `isinf' macro. */ |
|
bc1d196836a4
Issue #5724: Fix cmath failures on Solaris 10.
Mark Dickinson <dickinsm@gmail.com>
parents:
50788
diff
changeset
|
439 #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
|
440 |
|
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 `isnan' function. */ |
|
53732
bc1d196836a4
Issue #5724: Fix cmath failures on Solaris 10.
Mark Dickinson <dickinsm@gmail.com>
parents:
50788
diff
changeset
|
442 #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
|
443 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
444 /* 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
|
445 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
|
446 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
|
447 #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
|
448 /* #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
|
449 #endif |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
450 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
451 /* 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
|
452 /* #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
|
453 |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
454 /* 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
|
455 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
456 #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
|
457 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
458 |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
459 /* 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
|
460 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
461 #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
|
462 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
463 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
464 /* 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
|
465 /* #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
|
466 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
467 /* 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
|
468 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
|
469 /* #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
|
470 |
|
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 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
|
472 /* #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
|
473 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
474 /* 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
|
475 /* #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
|
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 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
|
478 tzname. */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
479 #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
|
480 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
481 /* 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
|
482 /* #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
|
483 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
484 /* 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
|
485 /* #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
|
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 `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
|
488 /* #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
|
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 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
|
491 /* #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
|
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 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
|
494 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
|
495 /* #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
|
496 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
497 /* 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
|
498 /* #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
|
499 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
500 /* 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
|
501 #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
|
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 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
|
504 /* #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
|
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 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
|
507 #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
|
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 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
|
510 /* #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
|
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 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
|
513 /* #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
|
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 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
|
516 /* #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
|
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 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
|
519 /* #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
|
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 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
|
522 /* #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
|
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 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
|
525 /* #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
|
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 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
|
528 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
|
529 /* #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
|
530 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
531 /* 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
|
532 /* #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
|
533 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
534 /* 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
|
535 #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
|
536 #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
|
537 #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
|
538 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
539 /* 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
|
540 #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
|
541 |
|
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 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
|
543 (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
|
544 /* #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
|
545 |
|
23747
4d593254ba93
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23202
diff
changeset
|
546 /* 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
|
547 #define WITH_DOC_STRINGS 1 |
|
4d593254ba93
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23202
diff
changeset
|
548 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
549 /* 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
|
550 /* #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
|
551 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
552 /* 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
|
553 /* #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
|
554 |
|
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 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
|
556 #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
|
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 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
|
559 /* 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
|
560 #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
|
561 |
|
22440
10846f1e1592
Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents:
22096
diff
changeset
|
562 /* 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
|
563 #define WITH_PYMALLOC 1 |
|
10846f1e1592
Enable pymalloc by default in the Windows build.
Tim Peters <tim.peters@gmail.com>
parents:
22096
diff
changeset
|
564 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
565 /* 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
|
566 /* #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
|
567 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
568 /* 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
|
569 #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
|
570 |
|
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 ftime. */ |
|
38232
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
572 #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
|
573 #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
|
574 #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
|
575 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
576 /* 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
|
577 #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
|
578 |
|
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 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
|
580 /* #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
|
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 getpid. */ |
|
38232
aa620856e8a3
Patch #1492356: Port to Windows CE (patch set 1).
Martin v. Löwis <martin@v.loewis.de>
parents:
36854
diff
changeset
|
583 #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
|
584 #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
|
585 #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
|
586 |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
587 /* 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
|
588 /* #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
|
589 |
|
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 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
|
591 /* #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
|
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 lstat. */ |
|
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_LSTAT */ |
|
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 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
|
597 #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
|
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 nice. */ |
|
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_NICE */ |
|
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 readlink. */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
603 /* #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
|
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 select. */ |
|
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_SELECT */ |
|
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 setpgid. */ |
|
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_SETPGID */ |
|
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 setpgrp. */ |
|
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_SETPGRP */ |
|
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 setsid. */ |
|
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_SETSID */ |
|
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 setvbuf. */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
618 #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
|
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 siginterrupt. */ |
|
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_SIGINTERRUPT */ |
|
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 symlink. */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
624 /* #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
|
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 tcgetpgrp. */ |
|
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_TCGETPGRP */ |
|
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 tcsetpgrp. */ |
|
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_TCSETPGRP */ |
|
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 times. */ |
|
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_TIMES */ |
|
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 uname. */ |
|
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_UNAME */ |
|
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 waitpid. */ |
|
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_WAITPID */ |
|
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
640 |
|
26739
c65e8cb91f4c
Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents:
26151
diff
changeset
|
641 /* 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
|
642 #ifndef MS_WINCE |
|
26739
c65e8cb91f4c
Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents:
26151
diff
changeset
|
643 #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
|
644 #endif |
|
26739
c65e8cb91f4c
Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents:
26151
diff
changeset
|
645 |
|
72961
80f07777accd
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
Nadeem Vawda <nadeem.vawda@gmail.com>
parents:
68256
diff
changeset
|
646 /* Define if the zlib library has inflateCopy */ |
|
80f07777accd
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
Nadeem Vawda <nadeem.vawda@gmail.com>
parents:
68256
diff
changeset
|
647 #define HAVE_ZLIB_COPY 1 |
|
80f07777accd
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
Nadeem Vawda <nadeem.vawda@gmail.com>
parents:
68256
diff
changeset
|
648 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
649 /* 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
|
650 /* #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
|
651 |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
652 /* 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
|
653 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
654 #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
|
655 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
656 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
657 /* 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
|
658 #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
|
659 #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
|
660 #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
|
661 |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
662 /* 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
|
663 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
664 #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
|
665 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
666 |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
667 /* 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
|
668 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
669 #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
|
670 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
671 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
672 /* 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
|
673 #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
|
674 |
|
32833
dac9d0664fc3
Use intptr_t/uintptr_t on Windows
Martin v. Löwis <martin@v.loewis.de>
parents:
32831
diff
changeset
|
675 /* 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
|
676 #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
|
677 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
678 /* 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
|
679 /* #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
|
680 |
|
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/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
|
682 /* #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
|
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/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
|
685 /* #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
|
686 |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
687 /* 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
|
688 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
689 #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
|
690 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
691 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
692 /* 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
|
693 /* #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
|
694 |
|
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/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
|
696 /* #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
|
697 |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
698 /* 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
|
699 #ifndef MS_WINCE |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
700 #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
|
701 #endif |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38689
diff
changeset
|
702 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
703 /* 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
|
704 /* #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
|
705 |
|
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/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
|
707 /* #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
|
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/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
|
710 /* #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
|
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 <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
|
713 /* #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
|
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 <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
|
716 /* #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
|
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 <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
|
719 /* #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
|
720 |
|
26739
c65e8cb91f4c
Use wcscoll for _locale.strcoll if available.
Martin v. Löwis <martin@v.loewis.de>
parents:
26151
diff
changeset
|
721 /* 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
|
722 #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
|
723 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
724 /* 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
|
725 /* #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
|
726 |
|
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 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
|
728 /* #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
|
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 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
|
731 #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
|
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 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
|
734 /* #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
|
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 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
|
737 #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
|
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 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
|
740 /* #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
|
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 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
|
743 /* #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
|
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 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
|
746 /* #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
|
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 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
|
749 /* #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
|
750 |
|
c073dffbe70e
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis <martin@v.loewis.de>
parents:
35972
diff
changeset
|
751 /* 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
|
752 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
|
753 #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
|
754 |
|
56707
2ab08c919648
Issue #7117 (backport py3k float repr) continued:
Mark Dickinson <dickinsm@gmail.com>
parents:
54895
diff
changeset
|
755 /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the |
|
2ab08c919648
Issue #7117 (backport py3k float repr) continued:
Mark Dickinson <dickinsm@gmail.com>
parents:
54895
diff
changeset
|
756 least significant byte first */ |
|
2ab08c919648
Issue #7117 (backport py3k float repr) continued:
Mark Dickinson <dickinsm@gmail.com>
parents:
54895
diff
changeset
|
757 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
|
2ab08c919648
Issue #7117 (backport py3k float repr) continued:
Mark Dickinson <dickinsm@gmail.com>
parents:
54895
diff
changeset
|
758 |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
diff
changeset
|
759 #endif /* !Py_CONFIG_H */ |
