Implemented fixes allowing libwebsockets to be built under Windows using MinGM/MSYS
[platform/upstream/libwebsockets.git] / win32port / win32helpers / gettimeofday.h
1 #ifndef _GET_TIME_OF_DAY_H
2 #define _GET_TIME_OF_DAY_H
3
4 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
5   #define DELTA_EPOCH_IN_MICROSECS  11644473600000000Ui64
6 #else
7   #define DELTA_EPOCH_IN_MICROSECS  11644473600000000ULL
8 #endif
9
10 #ifndef _TIMEZONE_DEFINED 
11 struct timezone 
12 {
13   int  tz_minuteswest; /* minutes W of Greenwich */
14   int  tz_dsttime;     /* type of dst correction */
15 };
16
17 int gettimeofday(struct timeval *tv, struct timezone *tz);
18
19 #endif
20
21
22 #endif