Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
#include <ws2tcpip.h>
#include "../win32port/win32helpers/websock-w32.h"
-#include "gettimeofday.h"
+#include "../win32port/win32helpers/gettimeofday.h"
#define strcasecmp stricmp
#ifndef _GET_TIME_OF_DAY_H\r
#define _GET_TIME_OF_DAY_H\r
\r
+#ifdef __MINGW64__\r
+#else\r
+#ifdef __MINGW32__\r
+#else\r
#include < time.h >\r
+#endif\r
+#endif\r
+\r
#include <windows.h> //I've ommited context line.\r
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)\r
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64\r
int gettimeofday(struct timeval *tv, struct timezone *tz);\r
\r
\r
-#endif
\ No newline at end of file
+#endif\r