]> granicus.if.org Git - python/commitdiff
Patch #1437769: notice that time_t is a 64-bit type in VS2005
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 6 Mar 2006 16:30:25 +0000 (16:30 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 6 Mar 2006 16:30:25 +0000 (16:30 +0000)
PC/pyconfig.h

index 149cd6f3a658148817d1df3199cfa4a304141a8b..194f7ba8ad522b635a896ab380f48e88af6d0e7d 100644 (file)
@@ -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