summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-28 21:55:29 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-28 21:55:29 (GMT)
commit94eba715add289a023b26132289ec00e5b7669c9 (patch)
tree08937f9c7e9b7291d5f59bf17ef979ac9336046f /PC/pyconfig.h
parent41cf50d613f90fa5a2c243b6ecd8d50f302f3f50 (diff)
downloadcpython-94eba715add289a023b26132289ec00e5b7669c9.zip
cpython-94eba715add289a023b26132289ec00e5b7669c9.tar.gz
cpython-94eba715add289a023b26132289ec00e5b7669c9.tar.bz2
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 1892cf1..a170e77 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