cpython: PC/pyconfig.h annotate (original) (raw)

18835

2dea40e40d9dPatch #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

2dea40e40d9dPatch #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

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

3

18845

4 /* pyconfig.h. NOT Generated automatically by configure.

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

5

2dea40e40d9dPatch #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

651fc8d98d99Fix a bunch of typos in documentation, docstrings and comments.

Walter Dörwald walter@livinglogic.de

diff changeset

7 Borland and Microsoft Visual C++ compilers. It is a

18835

2dea40e40d9dPatch #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.

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

9

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

10 WINDOWS DEFINES:

2dea40e40d9dPatch #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

2dea40e40d9dPatch #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

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

13

2dea40e40d9dPatch #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

15 MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs)

18835

2dea40e40d9dPatch #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.

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

17 Py_ENABLE_SHARED - Code if the Python core is built as a DLL.

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

18

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

19 Also note that neither "_M_IX86" or "_MSC_VER" should be used for

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

20 any purpose other than "Windows Intel x86 specific" and "Microsoft

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

21 compiler specific". Therefore, these should be very rare.

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

22

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

23

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

24 NOTE: The following symbols are deprecated:

44086

25 NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

26 MS_CORE_DLL.

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

27

44086

28 WIN32 is still required for the locale module.

29

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

30 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

31

42466

32 /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */

33 #ifdef USE_DL_EXPORT

34 # define Py_BUILD_CORE

35 #endif /* USE_DL_EXPORT */

36

35968

37 /* Visual Studio 2005 introduces deprecation warnings for

38 "insecure" and POSIX functions. The insecure functions should

35972

39 be replaced by *_s versions (according to Microsoft); the

35968

40 POSIX functions by _* versions (which, according to Microsoft,

41 would be ISO C conforming). Neither renaming is feasible, so

42 we just silence the warnings. */

43

40450

44 #ifndef _CRT_SECURE_NO_DEPRECATE

35968

45 #define _CRT_SECURE_NO_DEPRECATE 1

40450

46 #endif

47 #ifndef _CRT_NONSTDC_NO_DEPRECATE

35968

48 #define _CRT_NONSTDC_NO_DEPRECATE 1

40450

49 #endif

35968

50

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

51 #define HAVE_IO_H

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

52 #define HAVE_SYS_UTIME_H

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

53 #define HAVE_TEMPNAM

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

54 #define HAVE_TMPFILE

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

55 #define HAVE_TMPNAM

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

56 #define HAVE_CLOCK

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

57 #define HAVE_STRERROR

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

58

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

59 #include <io.h>

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

60

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

61 #define HAVE_HYPOT

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

62 #define HAVE_STRFTIME

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

63 #define DONT_HAVE_SIG_ALARM

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

64 #define DONT_HAVE_SIG_PAUSE

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

65 #define LONG_BIT 32

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

66 #define WORD_BIT 32

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

67

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

68 #define MS_WIN32 /* only support win32 and greater. */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

69 #define MS_WINDOWS

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

70 #ifndef PYTHONPATH

64190

71 # define PYTHONPATH L".\\DLLs;.\\lib"

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

72 #endif

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

73 #define NT_THREADS

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

74 #define WITH_THREAD

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

75 #ifndef NETSCAPE_PI

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

76 #define USE_SOCKET

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

77 #endif

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

78

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

79

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

80 /* Compiler specific defines */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

81

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

82 /* ------------------------------------------------------------------------*/

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

83 /* Microsoft C defines _MSC_VER */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

84 #ifdef _MSC_VER

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

85

26149

86 /* We want COMPILER to expand to a string containing _MSC_VER's *value*.

87 * This is horridly tricky, because the stringization operator only works

88 * on macro arguments, and doesn't evaluate macros passed *as* arguments.

89 * Attempts simpler than the following appear doomed to produce "_MSC_VER"

90 * literally in the string.

91 */

92 #define _Py_PASTE_VERSION(SUFFIX) \

93 ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")

94 /* e.g., this produces, after compile-time string catenation,

95 * ("[MSC v.1200 32 bit (Intel)]")

96 *

97 * _Py_STRINGIZE(_MSC_VER) expands to

98 * _Py_STRINGIZE1((_MSC_VER)) expands to

99 * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting

100 * it's scanned again for macros and so further expands to (under MSVC 6)

101 * _Py_STRINGIZE2(1200) which then expands to

102 * "1200"

103 */

104 #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))

105 #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X

106 #define _Py_STRINGIZE2(X) #X

107

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

108 /* MSVC defines _WINxx to differentiate the windows platform types

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

109

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

110 Note that for compatibility reasons _WIN32 is defined on Win32

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

111 *and* on Win64. For the same reasons, in Python, MS_WIN32 is

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

112 defined on Win32 *and* Win64. Win32 only code must therefore be

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

113 guarded as follows:

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

114 #if defined(MS_WIN32) && !defined(MS_WIN64)

41716

115 Some modules are disabled on Itanium processors, therefore we

116 have MS_WINI64 set for those targets, otherwise MS_WINX64

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

117 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

118 #ifdef _WIN64

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

119 #define MS_WIN64

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

120 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

121

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

122 /* set the COMPILER */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

123 #ifdef MS_WIN64

41716

124 #if defined(_M_IA64)

32831

125 #define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")

41716

126 #define MS_WINI64

93904

127 #define PYD_PLATFORM_TAG "win_ia64"

42466

128 #elif defined(_M_X64) || defined(_M_AMD64)

97539

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

129 #if defined(__INTEL_COMPILER)

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

130 #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

131 #else

32831

132 #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")

97539

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

133 #endif /* __INTEL_COMPILER */

41716

134 #define MS_WINX64

93904

135 #define PYD_PLATFORM_TAG "win_amd64"

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

136 #else

26149

137 #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

138 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

139 #endif /* MS_WIN64 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

140

41716

141 /* set the version macros for the windows headers */

94824

57e2549cc9a6Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks.

Steve Dower steve.dower@microsoft.com

diff changeset

142 /* Python 3.5+ requires Windows Vista or greater */

57e2549cc9a6Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks.

Steve Dower steve.dower@microsoft.com

diff changeset

143 #define Py_WINVER 0x0600 /* _WIN32_WINNT_VISTA */

57e2549cc9a6Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks.

Steve Dower steve.dower@microsoft.com

diff changeset

144 #define Py_NTDDI NTDDI_VISTA

42466

145

146 /* We only set these values when building Python - we don't want to force

147 these values on extensions, as that will affect the prototypes and

148 structures exposed in the Windows headers. Even when building Python, we

149 allow a single source file to override this - they may need access to

150 structures etc so it can optionally use new Windows features if it

151 determines at runtime they are available.

152 */

45257

6260db22ff75Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60696-60698 via svnmerge from

Christian Heimes christian@cheimes.de

diff changeset

153 #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_MODULE)

6260db22ff75Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60696-60698 via svnmerge from

Christian Heimes christian@cheimes.de

diff changeset

154 #ifndef NTDDI_VERSION

6260db22ff75Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60696-60698 via svnmerge from

Christian Heimes christian@cheimes.de

diff changeset

155 #define NTDDI_VERSION Py_NTDDI

6260db22ff75Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60696-60698 via svnmerge from

Christian Heimes christian@cheimes.de

diff changeset

156 #endif

42466

157 #ifndef WINVER

158 #define WINVER Py_WINVER

159 #endif

160 #ifndef _WIN32_WINNT

161 #define _WIN32_WINNT Py_WINVER

162 #endif

41716

163 #endif

164

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

165 /* _W64 is not defined for VC6 or eVC4 */

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

166 #ifndef _W64

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

167 #define _W64

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

168 #endif

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

169

36501

170 /* Define like size_t, omitting the "unsigned" */

171 #ifdef MS_WIN64

172 typedef __int64 ssize_t;

173 #else

174 typedef _W64 int ssize_t;

175 #endif

176 #define HAVE_SSIZE_T 1

177

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

178 #if defined(MS_WIN32) && !defined(MS_WIN64)

81827

179 #if defined(_M_IX86)

97539

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

180 #if defined(__INTEL_COMPILER)

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

181 #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

182 #else

26149

183 #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")

97539

ca88db01bb51Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

Zachary Ware zachary.ware@gmail.com

diff changeset

184 #endif /* __INTEL_COMPILER */

93904

185 #define PYD_PLATFORM_TAG "win32"

81827

186 #elif defined(_M_ARM)

187 #define COMPILER _Py_PASTE_VERSION("32 bit (ARM)")

93904

188 #define PYD_PLATFORM_TAG "win_arm"

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

189 #else

26149

190 #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

191 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

192 #endif /* MS_WIN32 && !MS_WIN64 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

193

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

194 typedef int pid_t;

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

195

33548

d376fe862b18Introduced a Py_IS_NAN macro, which probably works on the major platforms

Tim Peters tim.peters@gmail.com

diff changeset

196 #include <float.h>

d376fe862b18Introduced a Py_IS_NAN macro, which probably works on the major platforms

Tim Peters tim.peters@gmail.com

diff changeset

197 #define Py_IS_NAN _isnan

d376fe862b18Introduced a Py_IS_NAN macro, which probably works on the major platforms

Tim Peters tim.peters@gmail.com

diff changeset

198 #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

199 #define Py_IS_FINITE(X) _finite(X)

46477

200 #define copysign _copysign

89309

9aedb876c2d7Issue #20221: Removed conflicting (or circular) hypot definition

Zachary Ware zachary.ware@gmail.com

diff changeset

201

9aedb876c2d7Issue #20221: Removed conflicting (or circular) hypot definition

Zachary Ware zachary.ware@gmail.com

diff changeset

202 /* VS 2010 and above already defines hypot as _hypot */

9aedb876c2d7Issue #20221: Removed conflicting (or circular) hypot definition

Zachary Ware zachary.ware@gmail.com

diff changeset

203 #if _MSC_VER < 1600

46477

204 #define hypot _hypot

89309

9aedb876c2d7Issue #20221: Removed conflicting (or circular) hypot definition

Zachary Ware zachary.ware@gmail.com

diff changeset

205 #endif

33548

d376fe862b18Introduced a Py_IS_NAN macro, which probably works on the major platforms

Tim Peters tim.peters@gmail.com

diff changeset

206

93858

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

207 /* VS 2015 defines these names with a leading underscore */

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

208 #if _MSC_VER >= 1900

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

209 #define timezone _timezone

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

210 #define daylight _daylight

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

211 #define tzname _tzname

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

212 #endif

5754f069b123Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.

Steve Dower steve.dower@microsoft.com

diff changeset

213

76898

214 /* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/

215 #if _MSC_VER >= 1400 && _MSC_VER < 1600

216 #define HAVE_SXS 1

217 #endif

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

218

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

219 /* define some ANSI types that are not defined in earlier Win headers */

76898

220 #if _MSC_VER >= 1200

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

221 /* This file only exists in VC 6.0 or higher */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

222 #include <basetsd.h>

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

223 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

224

76898

225 #endif /* _MSC_VER */

226

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

227 /* ------------------------------------------------------------------------*/

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

228 /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

229 #if defined(__GNUC__) && defined(_WIN32)

22440

230 /* XXX These defines are likely incomplete, but should be easy to fix.

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

231 They should be complete enough to build extension modules. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

232 /* Suggested by Rene Liebscher R.Liebscher@gmx.de to avoid a GCC 2.91.*

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

233 bug that requires structure imports. More recent versions of the

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

234 compiler don't exhibit this bug.

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

235 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

236 #if (__GNUC__==2) && (__GNUC_MINOR__<=91)

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

237 #warning "Please use an up-to-date version of gcc! (>2.91 recommended)"

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

238 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

239

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

240 #define COMPILER "[gcc]"

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

241 #define hypot _hypot

28437

242 #define PY_LONG_LONG long long

42084

243 #define PY_LLONG_MIN LLONG_MIN

244 #define PY_LLONG_MAX LLONG_MAX

245 #define PY_ULLONG_MAX ULLONG_MAX

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

246 #endif /* GNUC */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

247

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

248 /* ------------------------------------------------------------------------*/

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

249 /* lcc-win32 defines __LCC__ */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

250 #if defined(__LCC__)

22440

251 /* XXX These defines are likely incomplete, but should be easy to fix.

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

252 They should be complete enough to build extension modules. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

253

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

254 #define COMPILER "[lcc-win32]"

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

255 typedef int pid_t;

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

256 /* __declspec() is supported here too - do nothing to get the defaults */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

257

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

258 #endif /* LCC */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

259

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

260 /* ------------------------------------------------------------------------*/

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

261 /* End of compilers - finish up */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

262

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

263 #ifndef NO_STDIO_H

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

264 # include <stdio.h>

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

265 #endif

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

266

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

267 /* 64 bit ints are usually spelt __int64 unless compiler has overridden */

28437

268 #ifndef PY_LONG_LONG

269 # define PY_LONG_LONG __int64

42110

270 # define PY_LLONG_MAX _I64_MAX

271 # define PY_LLONG_MIN _I64_MIN

272 # define PY_ULLONG_MAX _UI64_MAX

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

273 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

274

26149

275 /* For Windows the Python core is in a DLL by default. Test

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

276 Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

277 #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

278 # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

279 # define MS_COREDLL /* deprecated old symbol */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

280 #endif /* !MS_NO_COREDLL && ... */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

281

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

282 /* All windows compilers that use this header support __declspec */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

283 #define HAVE_DECLSPEC_DLL

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

284

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

285 /* For an MSVC DLL, we can nominate the .lib files used by extensions */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

286 #ifdef MS_COREDLL

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

287 # ifndef Py_BUILD_CORE /* not building the core - must be an ext */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

288 # if defined(_MSC_VER)

26149

289 /* So MSVC users need not specify the .lib file in

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

290 their Makefile (other compilers are generally

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

291 taken care of by distutils.) */

66664

292 # if defined(_DEBUG)

103722

293 # pragma comment(lib,"python37_d.lib")

66664

294 # elif defined(Py_LIMITED_API)

295 # pragma comment(lib,"python3.lib")

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

296 # else

103722

297 # pragma comment(lib,"python37.lib")

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

298 # endif /* _DEBUG */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

299 # endif /* _MSC_VER */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

300 # endif /* Py_BUILD_CORE */

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

301 #endif /* MS_COREDLL */

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

302

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

303 #if defined(MS_WIN64)

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

304 /* maintain "win32" sys.platform for backward compatibility of Python code,

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

305 the Win64 API should be close enough to the Win32 API to make this

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

306 preferable */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

307 # define PLATFORM "win32"

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

308 # define SIZEOF_VOID_P 8

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

309 # define SIZEOF_TIME_T 8

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

310 # define SIZEOF_OFF_T 4

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

311 # define SIZEOF_FPOS_T 8

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

312 # define SIZEOF_HKEY 8

36501

313 # define SIZEOF_SIZE_T 8

75659

314 /* configure.ac defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,

28437

315 sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t).

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

316 On Win64 the second condition is not true, but if fpos_t replaces off_t

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

317 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

318 should define this. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

319 # define HAVE_LARGEFILE_SUPPORT

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

320 #elif defined(MS_WIN32)

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

321 # define PLATFORM "win32"

19754

322 # define HAVE_LARGEFILE_SUPPORT

26149

323 # define SIZEOF_VOID_P 4

324 # define SIZEOF_OFF_T 4

325 # define SIZEOF_FPOS_T 8

326 # define SIZEOF_HKEY 4

36501

327 # define SIZEOF_SIZE_T 4

101269

328 /* MS VS2005 changes time_t to a 64-bit type on all platforms */

36853

9b13da647a5ePatch #1437769: notice that time_t is a 64-bit type in VS2005

Martin v. Löwis martin@v.loewis.de

diff changeset

329 # if defined(_MSC_VER) && _MSC_VER >= 1400

9b13da647a5ePatch #1437769: notice that time_t is a 64-bit type in VS2005

Martin v. Löwis martin@v.loewis.de

diff changeset

330 # define SIZEOF_TIME_T 8

9b13da647a5ePatch #1437769: notice that time_t is a 64-bit type in VS2005

Martin v. Löwis martin@v.loewis.de

diff changeset

331 # else

9b13da647a5ePatch #1437769: notice that time_t is a 64-bit type in VS2005

Martin v. Löwis martin@v.loewis.de

diff changeset

332 # define SIZEOF_TIME_T 4

9b13da647a5ePatch #1437769: notice that time_t is a 64-bit type in VS2005

Martin v. Löwis martin@v.loewis.de

diff changeset

333 # endif

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

334 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

335

24315

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

336 #ifdef _DEBUG

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

337 # define Py_DEBUG

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

338 #endif

a8df0c0be242Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.

Mark Hammond mhammond@skippinet.com.au

diff changeset

339

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

340

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

341 #ifdef MS_WIN32

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

342

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

343 #define SIZEOF_SHORT 2

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

344 #define SIZEOF_INT 4

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

345 #define SIZEOF_LONG 4

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

346 #define SIZEOF_LONG_LONG 8

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

347 #define SIZEOF_DOUBLE 8

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

348 #define SIZEOF_FLOAT 4

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

349

32913

350 /* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

351 Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

352 define these.

32913

353 If some compiler does not provide them, modify the #if appropriately. */

33762

354 #if defined(_MSC_VER)

43734

355 #if _MSC_VER > 1300

32833

356 #define HAVE_UINTPTR_T 1

357 #define HAVE_INTPTR_T 1

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

358 #else

43734

359 /* VC6, VS 2002 and eVC4 don't support the C99 LL suffix for 64-bit integer literals */

38453

29ae5e0fc348Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.

Thomas Wouters thomas@python.org

diff changeset

360 #define Py_LL(x) x##I64

91140

361 #endif /* _MSC_VER > 1300 */

33762

362 #endif /* _MSC_VER */

32833

363

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

364 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

365

52215

bb5de24a343fIssue #4258: Make it possible to use 30-bit digits for PyLongs:

Mark Dickinson dickinsm@gmail.com

diff changeset

366 /* define signed and unsigned exact-width 32-bit and 64-bit types, used in the

85418

4d62a62ba44dIssue #18783: Removed existing mentions of Python long type in docstrings,

Serhiy Storchaka storchaka@gmail.com

diff changeset

367 implementation of Python integers. */

103128

368 #define PY_UINT32_T uint32_t

369 #define PY_UINT64_T uint64_t

370 #define PY_INT32_T int32_t

371 #define PY_INT64_T int64_t

52215

bb5de24a343fIssue #4258: Make it possible to use 30-bit digits for PyLongs:

Mark Dickinson dickinsm@gmail.com

diff changeset

372

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

373 /* Fairly standard from here! */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

374

44349

375 /* Define to 1 if you have the `copysign' function. */

46477

376 #define HAVE_COPYSIGN 1

44349

377

91868

1c35cefd25b7Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.

Zachary Ware zachary.ware@gmail.com

diff changeset

378 /* Define to 1 if you have the `round' function. */

1c35cefd25b7Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.

Zachary Ware zachary.ware@gmail.com

diff changeset

379 #if _MSC_VER >= 1800

1c35cefd25b7Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.

Zachary Ware zachary.ware@gmail.com

diff changeset

380 #define HAVE_ROUND 1

1c35cefd25b7Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.

Zachary Ware zachary.ware@gmail.com

diff changeset

381 #endif

1c35cefd25b7Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.

Zachary Ware zachary.ware@gmail.com

diff changeset

382

50585

383 /* Define to 1 if you have the `isinf' macro. */

384 #define HAVE_DECL_ISINF 1

44349

385

386 /* Define to 1 if you have the `isnan' function. */

50585

387 #define HAVE_DECL_ISNAN 1

44349

388

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

389 /* Define if on AIX 3.

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

390 System headers sometimes define this.

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

391 We just want to avoid a redefinition error message. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

392 #ifndef _ALL_SOURCE

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

393 /* #undef _ALL_SOURCE */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

394 #endif

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

395

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

396 /* Define to empty if the keyword does not work. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

397 /* #define const */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

398

39442

399 /* Define to 1 if you have the <conio.h> header file. */

400 #define HAVE_CONIO_H 1

401

402 /* Define to 1 if you have the <direct.h> header file. */

403 #define HAVE_DIRECT_H 1

404

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

405 /* Define if you have dirent.h. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

406 /* #define DIRENT 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

407

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

408 /* Define to the type of elements in the array set by `getgroups'.

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

409 Usually this is either `int' or `gid_t'. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

410 /* #undef GETGROUPS_T */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

411

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

412 /* Define to `int' if <sys/types.h> doesn't define. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

413 /* #undef gid_t */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

414

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

415 /* Define if your struct tm has tm_zone. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

416 /* #undef HAVE_TM_ZONE */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

417

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

418 /* Define if you don't have tm_zone but do have the external array

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

419 tzname. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

420 #define HAVE_TZNAME

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

421

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

422 /* Define to `int' if <sys/types.h> doesn't define. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

423 /* #undef mode_t */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

424

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

425 /* Define if you don't have dirent.h, but have ndir.h. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

426 /* #undef NDIR */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

427

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

428 /* Define to `long' if <sys/types.h> doesn't define. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

429 /* #undef off_t */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

430

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

431 /* Define to `int' if <sys/types.h> doesn't define. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

432 /* #undef pid_t */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

433

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

434 /* Define if the system does not provide POSIX.1 features except

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

435 with this defined. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

436 /* #undef _POSIX_1_SOURCE */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

437

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

438 /* Define if you need to in order for stat and other things to work. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

439 /* #undef _POSIX_SOURCE */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

440

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

441 /* Define as the return type of signal handlers (int or void). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

442 #define RETSIGTYPE void

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

443

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

444 /* Define to `unsigned' if <sys/types.h> doesn't define. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

445 /* #undef size_t */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

446

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

447 /* Define if you have the ANSI C header files. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

448 #define STDC_HEADERS 1

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

449

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

450 /* Define if you don't have dirent.h, but have sys/dir.h. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

451 /* #undef SYSDIR */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

452

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

453 /* Define if you don't have dirent.h, but have sys/ndir.h. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

454 /* #undef SYSNDIR */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

455

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

456 /* Define if you can safely include both <sys/time.h> and <time.h>. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

457 /* #undef TIME_WITH_SYS_TIME */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

458

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

459 /* Define if your <sys/time.h> declares struct tm. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

460 /* #define TM_IN_SYS_TIME 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

461

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

462 /* Define to `int' if <sys/types.h> doesn't define. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

463 /* #undef uid_t */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

464

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

465 /* Define if the closedir function returns void instead of int. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

466 /* #undef VOID_CLOSEDIR */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

467

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

468 /* Define if getpgrp() must be called as getpgrp(0)

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

469 and (consequently) setpgrp() as setpgrp(0, 0). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

470 /* #undef GETPGRP_HAVE_ARGS */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

471

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

472 /* Define this if your time.h defines altzone */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

473 /* #define HAVE_ALTZONE */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

474

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

475 /* Define if you have the putenv function. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

476 #define HAVE_PUTENV

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

477

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

478 /* Define if your compiler supports function prototypes */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

479 #define HAVE_PROTOTYPES

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

480

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

481 /* Define if you can safely include both <sys/select.h> and <sys/time.h>

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

482 (which you can't on SCO ODT 3.0). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

483 /* #undef SYS_SELECT_WITH_SYS_TIME */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

484

23747

485 /* Define if you want documentation strings in extension modules */

486 #define WITH_DOC_STRINGS 1

487

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

488 /* Define if you want to compile in rudimentary thread support */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

489 /* #undef WITH_THREAD */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

490

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

491 /* Define if you want to use the GNU readline library */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

492 /* #define WITH_READLINE 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

493

22440

494 /* Use Python's own small-block memory-allocator. */

495 #define WITH_PYMALLOC 1

496

18835

2dea40e40d9dPatch #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 have clock. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

498 /* #define HAVE_CLOCK */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

499

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

500 /* Define when any dynamic module loading is enabled */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

501 #define HAVE_DYNAMIC_LOADING

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

502

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

503 /* Define if you have ftime. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

504 #define HAVE_FTIME

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

505

2dea40e40d9dPatch #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 getpeername. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

507 #define HAVE_GETPEERNAME

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

508

2dea40e40d9dPatch #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 have getpgrp. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

510 /* #undef HAVE_GETPGRP */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

511

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

512 /* Define if you have getpid. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

513 #define HAVE_GETPID

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

514

2dea40e40d9dPatch #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 have gettimeofday. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

516 /* #undef HAVE_GETTIMEOFDAY */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

517

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

518 /* Define if you have getwd. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

519 /* #undef HAVE_GETWD */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

520

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

521 /* Define if you have lstat. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

522 /* #undef HAVE_LSTAT */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

523

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

524 /* Define if you have the mktime function. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

525 #define HAVE_MKTIME

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

526

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

527 /* Define if you have nice. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

528 /* #undef HAVE_NICE */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

529

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

530 /* Define if you have readlink. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

531 /* #undef HAVE_READLINK */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

532

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

533 /* Define if you have select. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

534 /* #undef HAVE_SELECT */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

535

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

536 /* Define if you have setpgid. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

537 /* #undef HAVE_SETPGID */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

538

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

539 /* Define if you have setpgrp. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

540 /* #undef HAVE_SETPGRP */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

541

2dea40e40d9dPatch #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 have setsid. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

543 /* #undef HAVE_SETSID */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

544

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

545 /* Define if you have setvbuf. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

546 #define HAVE_SETVBUF

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

547

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

548 /* Define if you have siginterrupt. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

549 /* #undef HAVE_SIGINTERRUPT */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

550

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

551 /* Define if you have symlink. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

552 /* #undef HAVE_SYMLINK */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

553

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

554 /* Define if you have tcgetpgrp. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

555 /* #undef HAVE_TCGETPGRP */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

556

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

557 /* Define if you have tcsetpgrp. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

558 /* #undef HAVE_TCSETPGRP */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

559

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

560 /* Define if you have times. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

561 /* #undef HAVE_TIMES */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

562

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

563 /* Define if you have uname. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

564 /* #undef HAVE_UNAME */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

565

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

566 /* Define if you have waitpid. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

567 /* #undef HAVE_WAITPID */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

568

54442

69cd80f8e133Issue #5562: Use wcsftime for time.strftime where available.

Martin v. Löwis martin@v.loewis.de

diff changeset

569 /* Define to 1 if you have the `wcsftime' function. */

54528

570 #if defined(_MSC_VER) && _MSC_VER >= 1310

54442

69cd80f8e133Issue #5562: Use wcsftime for time.strftime where available.

Martin v. Löwis martin@v.loewis.de

diff changeset

571 #define HAVE_WCSFTIME 1

54528

572 #endif

54442

69cd80f8e133Issue #5562: Use wcsftime for time.strftime where available.

Martin v. Löwis martin@v.loewis.de

diff changeset

573

26739

574 /* Define to 1 if you have the `wcscoll' function. */

575 #define HAVE_WCSCOLL 1

576

56637

577 /* Define to 1 if you have the `wcsxfrm' function. */

578 #define HAVE_WCSXFRM 1

579

72962

fc7ee478ed3bIssue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

Nadeem Vawda nadeem.vawda@gmail.com

diff changeset

580 /* Define if the zlib library has inflateCopy */

fc7ee478ed3bIssue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

Nadeem Vawda nadeem.vawda@gmail.com

diff changeset

581 #define HAVE_ZLIB_COPY 1

fc7ee478ed3bIssue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

Nadeem Vawda nadeem.vawda@gmail.com

diff changeset

582

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

583 /* Define if you have the <dlfcn.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

584 /* #undef HAVE_DLFCN_H */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

585

39442

586 /* Define to 1 if you have the <errno.h> header file. */

587 #define HAVE_ERRNO_H 1

588

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

589 /* Define if you have the <fcntl.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

590 #define HAVE_FCNTL_H 1

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

591

39442

592 /* Define to 1 if you have the <process.h> header file. */

593 #define HAVE_PROCESS_H 1

594

595 /* Define to 1 if you have the <signal.h> header file. */

596 #define HAVE_SIGNAL_H 1

597

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

598 /* Define if you have the <stdarg.h> prototypes. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

599 #define HAVE_STDARG_PROTOTYPES

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

600

32833

601 /* Define if you have the <stddef.h> header file. */

602 #define HAVE_STDDEF_H 1

603

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

604 /* Define if you have the <sys/audioio.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

605 /* #undef HAVE_SYS_AUDIOIO_H */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

606

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

607 /* Define if you have the <sys/param.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

608 /* #define HAVE_SYS_PARAM_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

609

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

610 /* Define if you have the <sys/select.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

611 /* #define HAVE_SYS_SELECT_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

612

39442

613 /* Define to 1 if you have the <sys/stat.h> header file. */

614 #define HAVE_SYS_STAT_H 1

615

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

616 /* Define if you have the <sys/time.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

617 /* #define HAVE_SYS_TIME_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

618

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

619 /* Define if you have the <sys/times.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

620 /* #define HAVE_SYS_TIMES_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

621

39442

622 /* Define to 1 if you have the <sys/types.h> header file. */

623 #define HAVE_SYS_TYPES_H 1

624

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

625 /* Define if you have the <sys/un.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

626 /* #define HAVE_SYS_UN_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

627

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

628 /* Define if you have the <sys/utime.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

629 /* #define HAVE_SYS_UTIME_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

630

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

631 /* Define if you have the <sys/utsname.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

632 /* #define HAVE_SYS_UTSNAME_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

633

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

634 /* Define if you have the <unistd.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

635 /* #define HAVE_UNISTD_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

636

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

637 /* Define if you have the <utime.h> header file. */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

638 /* #define HAVE_UTIME_H 1 */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

639

26739

640 /* Define if the compiler provides a wchar.h header file. */

641 #define HAVE_WCHAR_H 1

642

64281

643 /* The size of `wchar_t', as computed by sizeof. */

644 #define SIZEOF_WCHAR_T 2

645

103239

646 /* The size of `_Bool', as computed by sizeof. */

647 #define SIZEOF__BOOL 1

648

84045

0410bf251e10Issue #17931: Resolve confusion on Windows between pids and process handles.

Richard Oudkerk shibturn@gmail.com

diff changeset

649 /* The size of `pid_t', as computed by sizeof. */

0410bf251e10Issue #17931: Resolve confusion on Windows between pids and process handles.

Richard Oudkerk shibturn@gmail.com

diff changeset

650 #define SIZEOF_PID_T SIZEOF_INT

84026

2298bcba6ec9Close #17931: Fix PyLong_FromPid() on Windows 64-bit: processes are identified

Victor Stinner victor.stinner@gmail.com

diff changeset

651

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

652 /* Define if you have the dl library (-ldl). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

653 /* #undef HAVE_LIBDL */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

654

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

655 /* Define if you have the mpc library (-lmpc). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

656 /* #undef HAVE_LIBMPC */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

657

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

658 /* Define if you have the nsl library (-lnsl). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

659 #define HAVE_LIBNSL 1

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

660

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

661 /* Define if you have the seq library (-lseq). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

662 /* #undef HAVE_LIBSEQ */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

663

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

664 /* Define if you have the socket library (-lsocket). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

665 #define HAVE_LIBSOCKET 1

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

666

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

667 /* Define if you have the sun library (-lsun). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

668 /* #undef HAVE_LIBSUN */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

669

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

670 /* Define if you have the termcap library (-ltermcap). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

671 /* #undef HAVE_LIBTERMCAP */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

672

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

673 /* Define if you have the termlib library (-ltermlib). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

674 /* #undef HAVE_LIBTERMLIB */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

675

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

676 /* Define if you have the thread library (-lthread). */

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

677 /* #undef HAVE_LIBTHREAD */

36476

678

679 /* WinSock does not use a bitmask in select, and uses

680 socket handles greater than FD_SETSIZE */

681 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE

682

53185

683 /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the

684 least significant byte first */

685 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1

686

18835

2dea40e40d9dPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.

Martin v. Löwis martin@v.loewis.de

parents:

diff changeset

687 #endif /* !Py_CONFIG_H */