~roger.light/ubuntu/vivid/libwebsockets/fix-for-1422623

« back to all changes in this revision

Viewing changes to win32port/win32helpers/gettimeofday.h

  • Committer: Roger A. Light
  • Date: 2015-02-19 16:00:08 UTC
  • mfrom: (1.1.1)
  • Revision ID: roger@atchoo.org-20150219160008-162cd9naiu2yekny
New upstream release 1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _GET_TIME_OF_DAY_H
2
 
#define _GET_TIME_OF_DAY_H
3
 
 
4
 
#ifdef  __MINGW64__
5
 
#else
6
 
#ifdef  __MINGW32__
7
 
#else
8
 
#include < time.h >
9
 
#endif
10
 
#endif
11
 
 
12
 
#include <windows.h> //I've ommited context line.
13
 
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
14
 
  #define DELTA_EPOCH_IN_MICROSECS  11644473600000000Ui64
15
 
#else
16
 
  #define DELTA_EPOCH_IN_MICROSECS  11644473600000000ULL
17
 
#endif
18
 
 
19
 
struct timezone 
20
 
{
21
 
  int  tz_minuteswest; /* minutes W of Greenwich */
22
 
  int  tz_dsttime;     /* type of dst correction */
23
 
};
24
 
 
25
 
int gettimeofday(struct timeval *tv, struct timezone *tz);
26
 
 
27
 
 
28
 
#endif
 
1
#ifndef _GET_TIME_OF_DAY_H
 
2
#define _GET_TIME_OF_DAY_H
 
3
 
 
4
#ifdef  __MINGW64__
 
5
#else
 
6
#ifdef  __MINGW32__
 
7
#else
 
8
#include < time.h >
 
9
#endif
 
10
#endif
 
11
 
 
12
#include <windows.h> //I've ommited context line.
 
13
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
 
14
  #define DELTA_EPOCH_IN_MICROSECS  11644473600000000Ui64
 
15
#else
 
16
  #define DELTA_EPOCH_IN_MICROSECS  11644473600000000ULL
 
17
#endif
 
18
 
 
19
#ifndef _TIMEZONE_DEFINED 
 
20
struct timezone 
 
21
{
 
22
  int  tz_minuteswest; /* minutes W of Greenwich */
 
23
  int  tz_dsttime;     /* type of dst correction */
 
24
};
 
25
 
 
26
int gettimeofday(struct timeval *tv, struct timezone *tz);
 
27
 
 
28
#endif
 
29
 
 
30
 
 
31
#endif
 
 
b'\\ No newline at end of file'