summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-03-06 16:30:25 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-03-06 16:30:25 (GMT)
commita2d4d6c285e6d076e8d30f0d76dec46ba045ebc7 (patch)
treec180c3b225c724dd3c6c5c5ca909bacc4db18165 /PC/pyconfig.h
parent32feb8592f8e7b09a0f7c46a82851628d1c77d34 (diff)
downloadcpython-a2d4d6c285e6d076e8d30f0d76dec46ba045ebc7.zip
cpython-a2d4d6c285e6d076e8d30f0d76dec46ba045ebc7.tar.gz
cpython-a2d4d6c285e6d076e8d30f0d76dec46ba045ebc7.tar.bz2
Patch #1437769: notice that time_t is a 64-bit type in VS2005
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 149cd6f..194f7ba 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -272,11 +272,16 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
# define PLATFORM "win32"
# define HAVE_LARGEFILE_SUPPORT
# define SIZEOF_VOID_P 4
-# define SIZEOF_TIME_T 4
# define SIZEOF_OFF_T 4
# define SIZEOF_FPOS_T 8
# define SIZEOF_HKEY 4
# define SIZEOF_SIZE_T 4
+ /* MS VS2005 changes TIME_T to an 64-bit type on all platforms */
+# if defined(_MSC_VER) && _MSC_VER >= 1400
+# define SIZEOF_TIME_T 8
+# else
+# define SIZEOF_TIME_T 4
+# endif
#endif
#ifdef _DEBUG