[Python-checkins] r42870 - python/trunk/PC/pyconfig.h
martin.v.loewis
python-checkins at python.org
Mon Mar 6 17:30:27 CET 2006
Author: martin.v.loewis
Date: Mon Mar 6 17:30:25 2006
New Revision: 42870
Modified:
python/trunk/PC/pyconfig.h
Log:
Patch #1437769: notice that time_t is a 64-bit type in VS2005
Modified: python/trunk/PC/pyconfig.h
==============================================================================
--- python/trunk/PC/pyconfig.h (original)
+++ python/trunk/PC/pyconfig.h Mon Mar 6 17:30:25 2006
@@ -272,11 +272,16 @@
# 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
More information about the Python-checkins
mailing list