]> granicus.if.org Git - curl/commitdiff
VS2005 and later dafault size for time_t is 64-bit, unless
authorYang Tse <yangsita@gmail.com>
Fri, 7 Mar 2008 02:49:14 +0000 (02:49 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 7 Mar 2008 02:49:14 +0000 (02:49 +0000)
_USE_32BIT_TIME_T has been defined to get a 32-bit time_t

lib/config-win32.h
lib/config-win32ce.h
src/config-win32.h

index 8e57b14547210699b4a67b46045eaed71f5448a7..031eda54a57f698b9b9b5aa1273f23e3a1cca508 100644 (file)
 #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)
index 7531d4b1f2ac0fb526991e893940b17fd59b2f5a..6c0fb411f632002c4ca35876bebbc5b9e760d376 100644 (file)
 #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
+
 /* ---------------------------------------------------------------- */
 /*                           LDAP SUPPORT                           */
 /* ---------------------------------------------------------------- */
index e6c42e50155c9d1a10ebe7df64df85621ec522e5..6aaac00327bb6cd20b2ebadbc2dac7de49d45173 100644 (file)
 #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)