1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

mingw gettimeofday avoid missing include

Based on work from Radu Sorici <soriciradu@gmail.com>

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2012-04-12 11:02:06 +08:00 committed by Andy Green
parent eeeddf030d
commit a3147888d6
2 changed files with 9 additions and 2 deletions

View file

@ -35,7 +35,7 @@ extern "C" {
#include <ws2tcpip.h>
#include "../win32port/win32helpers/websock-w32.h"
#include "gettimeofday.h"
#include "../win32port/win32helpers/gettimeofday.h"
#define strcasecmp stricmp

View file

@ -1,7 +1,14 @@
#ifndef _GET_TIME_OF_DAY_H
#define _GET_TIME_OF_DAY_H
#ifdef __MINGW64__
#else
#ifdef __MINGW32__
#else
#include < time.h >
#endif
#endif
#include <windows.h> //I've ommited context line.
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
@ -18,4 +25,4 @@ struct timezone
int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif
#endif