summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/deps/picotls/picotlsvs/picotls/wincompat.h
blob: 8ff26bfbf8f4179ba49db83eaa1524ca540ed590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef WINCOMPAT_H
#define WINCOMPAT_H

#include <stdint.h>
#define ssize_t int
#include <Winsock2.h>

#ifndef gettimeofday
#define gettimeofday wintimeofday

#ifndef __attribute__
#define __attribute__(X)
#endif

#ifdef  __cplusplus
extern "C" {
#endif
	struct timezone {
		int tz_minuteswest;     /* minutes west of Greenwich */
		int tz_dsttime;         /* type of DST correction */
	};

    int wintimeofday(struct timeval* tv, struct timezone* tz);

#ifdef  __cplusplus
} /* extern "C" */
#endif




#endif


#endif /* WINCOMPAT_H */