summaryrefslogtreecommitdiff
path: root/include/my_time.h
diff options
context:
space:
mode:
authorgeorg@lmy002.wdf.sap.corp <>2006-09-21 15:19:20 +0200
committergeorg@lmy002.wdf.sap.corp <>2006-09-21 15:19:20 +0200
commitf4af1d82839a099e579cb6a6e5036bb7940bb4cd (patch)
treea5aad60a7e8110b50e85111760c3b454af90470a /include/my_time.h
parent7f4cd7864f044091bdba992f132e641a2381b3a0 (diff)
downloadmariadb-git-f4af1d82839a099e579cb6a6e5036bb7940bb4cd.tar.gz
Windows 64bit fixes
Fixed udf_example, so tests now can also run udf on win.
Diffstat (limited to 'include/my_time.h')
-rw-r--r--include/my_time.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_time.h b/include/my_time.h
index 3025b98a9c4..d0f2fc323d8 100644
--- a/include/my_time.h
+++ b/include/my_time.h
@@ -33,7 +33,12 @@ extern uchar days_in_month[];
Portable time_t replacement.
Should be signed and hold seconds for 1902-2038 range.
*/
+#if defined(_WIN64) || defined(WIN64)
+/* on Win64 long is still 4 bytes (not 8!) */
+typedef LONG64 my_time_t;
+#else
typedef long my_time_t;
+#endif
#define MY_TIME_T_MAX LONG_MAX
#define MY_TIME_T_MIN LONG_MIN