diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-28 21:55:29 +0000 |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-28 21:55:29 +0000 |
commit | 480916780dddd28ea805f72df36b2a91a3247b40 (patch) | |
tree | db1147e156afdbecd596f1f7d4ee7a9c7682a139 /PC/pyconfig.h | |
parent | 7ddc370e1fe4b6106ec7179d7cd65ac315fafe06 (diff) | |
download | cpython-480916780dddd28ea805f72df36b2a91a3247b40.tar.gz |
Repair compilation for Visual Studio 2005.
I applied the same changes manually to VS7.1 and VC6 files; completely untested.
(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r-- | PC/pyconfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 1892cf1ea5..a170e771c4 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -162,9 +162,15 @@ WIN32 is still required for the locale module. #define Py_NTDDI NTDDI_WINXP #else /* Python 2.6+ requires Windows 2000 or greater */ +#ifdef _WIN32_WINNT_WIN2K #define Py_WINVER _WIN32_WINNT_WIN2K +#else +#define Py_WINVER 0x0500 +#endif +#ifdef NTDDI_WIN2KSP4 #define Py_NTDDI NTDDI_WIN2KSP4 #endif +#endif /* We only set these values when building Python - we don't want to force these values on extensions, as that will affect the prototypes and |