summaryrefslogtreecommitdiff
path: root/lib/config-win32.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-03-07 02:49:14 +0000
committerYang Tse <yangsita@gmail.com>2008-03-07 02:49:14 +0000
commit8e9e33ae52b7b17d57c9fc8694e2f77fab11ae03 (patch)
treebd015191497077a86861a59bea543ec13225efdd /lib/config-win32.h
parent40e1a016f92903c731f07325bc1f9c6416ae1ac3 (diff)
downloadcurl-8e9e33ae52b7b17d57c9fc8694e2f77fab11ae03.tar.gz
VS2005 and later dafault size for time_t is 64-bit, unless
_USE_32BIT_TIME_T has been defined to get a 32-bit time_t
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r--lib/config-win32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 8e57b1454..031eda54a 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -353,6 +353,16 @@
#define _CRT_NONSTDC_NO_DEPRECATE 1
#endif
+/* VS2005 and later dafault size for time_t is 64-bit, unless */
+/* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+# ifndef _USE_32BIT_TIME_T
+# define SIZEOF_TIME_T 8
+# else
+# define SIZEOF_TIME_T 4
+# endif
+#endif
+
/* VS2008 does not support Windows build targets prior to WinXP, */
/* so, if no build target has been defined we will target WinXP. */
#if defined(_MSC_VER) && (_MSC_VER >= 1500)