Bug#26536 func_time failure on vm-win2003-64-b, occurs every time

 - Fixes for 5.1
 - Always use long for my_time_t
parent b4d06c0d
...@@ -38,13 +38,7 @@ extern uchar days_in_month[]; ...@@ -38,13 +38,7 @@ extern uchar days_in_month[];
For example QNX has an unsigned time_t type For example QNX has an unsigned time_t type
*/ */
#if defined(_WIN64) || defined(WIN64) typedef long my_time_t;
/* on Win64 long is still 4 bytes (not 8!) */
typedef LONG64 my_time_t;
#else
typedef time_t my_time_t;
#endif
#define MY_TIME_T_MAX LONG_MAX #define MY_TIME_T_MAX LONG_MAX
#define MY_TIME_T_MIN LONG_MIN #define MY_TIME_T_MIN LONG_MIN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment