aboutsummaryrefslogtreecommitdiff
path: root/lib/config-win32ce.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config-win32ce.h')
-rw-r--r--lib/config-win32ce.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h
index 7531d4b1f..6c0fb411f 100644
--- a/lib/config-win32ce.h
+++ b/lib/config-win32ce.h
@@ -314,6 +314,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
+
/* ---------------------------------------------------------------- */
/* LDAP SUPPORT */
/* ---------------------------------------------------------------- */