Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2d4d6c

Browse files
committed
Patch #1437769: notice that time_t is a 64-bit type in VS2005
1 parent 32feb85 commit a2d4d6c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

PC/pyconfig.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,16 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
272272
# define PLATFORM "win32"
273273
# define HAVE_LARGEFILE_SUPPORT
274274
# define SIZEOF_VOID_P 4
275-
# define SIZEOF_TIME_T 4
276275
# define SIZEOF_OFF_T 4
277276
# define SIZEOF_FPOS_T 8
278277
# define SIZEOF_HKEY 4
279278
# define SIZEOF_SIZE_T 4
279+
/* MS VS2005 changes TIME_T to an 64-bit type on all platforms */
280+
# if defined(_MSC_VER) && _MSC_VER >= 1400
281+
# define SIZEOF_TIME_T 8
282+
# else
283+
# define SIZEOF_TIME_T 4
284+
# endif
280285
#endif
281286

282287
#ifdef _DEBUG

0 commit comments

Comments
 (0)