@@ -135,9 +135,9 @@ WIN32 is still required for the locale module.
135135#endif /* MS_WIN64 */
136136
137137/* set the version macros for the windows headers */
138- /* Python 3.9 + requires Windows 8 or greater */
139- #define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
140- #define Py_NTDDI NTDDI_WIN8
138+ /* Python 3.5 + requires Windows Vista or greater */
139+ #define Py_WINVER 0x0600 /* _WIN32_WINNT_VISTA */
140+ #define Py_NTDDI NTDDI_VISTA
141141
142142/* We only set these values when building Python - we don't want to force
143143 these values on extensions, as that will affect the prototypes and
@@ -194,6 +194,11 @@ typedef int pid_t;
194194#define Py_IS_INFINITY (X ) (!_finite(X) && !_isnan(X))
195195#define Py_IS_FINITE (X ) _finite(X)
196196
197+ /* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
198+ #if _MSC_VER >= 1400 && _MSC_VER < 1600
199+ #define HAVE_SXS 1
200+ #endif
201+
197202/* define some ANSI types that are not defined in earlier Win headers */
198203#if _MSC_VER >= 1200
199204/* This file only exists in VC 6.0 or higher */
@@ -268,11 +273,11 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
268273 file in their Makefile (other compilers are
269274 generally taken care of by distutils.) */
270275# if defined(_DEBUG )
271- # pragma comment(lib,"python39_d .lib")
276+ # pragma comment(lib,"python38_d .lib")
272277# elif defined(Py_LIMITED_API )
273278# pragma comment(lib,"python3.lib")
274279# else
275- # pragma comment(lib,"python39 .lib")
280+ # pragma comment(lib,"python38 .lib")
276281# endif /* _DEBUG */
277282# endif /* _MSC_VER */
278283# endif /* Py_BUILD_CORE */
@@ -290,7 +295,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
290295# define SIZEOF_HKEY 8
291296# define SIZEOF_SIZE_T 8
292297/* configure.ac defines HAVE_LARGEFILE_SUPPORT iff
293- sizeof(off_t) > sizeof(long), and sizeof(long long ) >= sizeof(off_t).
298+ sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG ) >= sizeof(off_t).
294299 On Win64 the second condition is not true, but if fpos_t replaces off_t
295300 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
296301 should define this. */
@@ -682,6 +687,4 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
682687/* Define if libssl has X509_VERIFY_PARAM_set1_host and related function */
683688#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1
684689
685- #define PLATLIBDIR "lib"
686-
687690#endif /* !Py_CONFIG_H */
0 commit comments