diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-09 19:55:22 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-09 19:55:22 +0000 |
commit | 630206588d6a77d4ec8e04a6d05f2ad96b37cd5d (patch) | |
tree | 1baac748b87c5fce5e93406719882c43448b1000 /PC/pyconfig.h | |
parent | 13ff57e3eefe6bfba6c23c98af867acab5fcafb8 (diff) | |
download | cpython-630206588d6a77d4ec8e04a6d05f2ad96b37cd5d.tar.gz |
Issue #1706: Require Windows 2000+
Added Py_BUILD_CORE_MODULES macro to set WINVER and NTDDI_VERSION to Windows 2000 for core modules, too
Added -d option to build.bat (same as -c Debug) and fixed warning about /build option
Updated Windows related readme.txt files
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r-- | PC/pyconfig.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 560818f542..1892cf1ea5 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -158,10 +158,12 @@ WIN32 is still required for the locale module. /* set the version macros for the windows headers */ #ifdef MS_WINX64 /* 64 bit only runs on XP or greater */ -#define Py_WINVER 0x0501 +#define Py_WINVER _WIN32_WINNT_WINXP +#define Py_NTDDI NTDDI_WINXP #else -/* NT 4.0 or greater required otherwise */ -#define Py_WINVER 0x0400 +/* Python 2.6+ requires Windows 2000 or greater */ +#define Py_WINVER _WIN32_WINNT_WIN2K +#define Py_NTDDI NTDDI_WIN2KSP4 #endif /* We only set these values when building Python - we don't want to force @@ -171,7 +173,10 @@ WIN32 is still required for the locale module. structures etc so it can optionally use new Windows features if it determines at runtime they are available. */ -#ifdef Py_BUILD_CORE +#if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_MODULE) +#ifndef NTDDI_VERSION +#define NTDDI_VERSION Py_NTDDI +#endif #ifndef WINVER #define WINVER Py_WINVER #endif |