summaryrefslogtreecommitdiff
path: root/mysys/mf_getdate.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-03-24 12:30:03 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-03-24 12:30:03 +0100
commit8250ceced6aab95347e00e2ff1c02730da0be4fe (patch)
treea9c92cf8c685457bf79b580ab6109e6331e8c300 /mysys/mf_getdate.c
parenta85ccfedcf91f7ad2c578ec60e69d127f199d079 (diff)
downloadmariadb-git-8250ceced6aab95347e00e2ff1c02730da0be4fe.tar.gz
Fix compilation on Windows:
- Fixes for type-conversion (time_t is not interchangeable with my_time_t on Windows as time_t s 64 bit while my_time_t is long) - BIGENDIAN-> ARCH_BIGENDIAN . BIGENDIAN constant is defined in winsock2.h (as 0) - added explicit cast for longlong->double conversion in sql/item.h (fixed many warnings) Also, HAVE_SNPRINTF is now defined and snprintf is defined to _snprintf in config-win.h
Diffstat (limited to 'mysys/mf_getdate.c')
-rw-r--r--mysys/mf_getdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/mf_getdate.c b/mysys/mf_getdate.c
index 9475bebd107..af86322a856 100644
--- a/mysys/mf_getdate.c
+++ b/mysys/mf_getdate.c
@@ -17,7 +17,7 @@
#include "mysys_priv.h"
#include <m_string.h>
-
+#include <my_time.h>
/*
get date as string