summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-10-15 04:26:18 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-10-15 04:26:18 (GMT)
commit15b23a083d1bc861c24b17af95a027571b9ad25c (patch)
tree6d0e10ec8165070b0e94b50cb34d5933407d1088 /PC/pyconfig.h
parent4d03791632a9b7a6d96640df09466969aec81b71 (diff)
downloadcpython-15b23a083d1bc861c24b17af95a027571b9ad25c.zip
cpython-15b23a083d1bc861c24b17af95a027571b9ad25c.tar.gz
cpython-15b23a083d1bc861c24b17af95a027571b9ad25c.tar.bz2
Patch #1020042: Only define HAVE_UINTPTR_T for VC 7.x.
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 4d1872c..1979b7e 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -273,10 +273,12 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
If some compiler does not provide them, modify the #if appropriately. */
-#if _MSC_VER != 1200
+#if defined(_MSC_VER)
+#if _MSC_VER > 1200
#define HAVE_UINTPTR_T 1
#define HAVE_INTPTR_T 1
-#endif
+#endif /* _MSC_VER > 1200 */
+#endif /* _MSC_VER */
#endif