diff options
Diffstat (limited to 'web/server/h2o/libh2o/deps/picotls/picotlsvs/picotls/wincompat.h')
-rw-r--r-- | web/server/h2o/libh2o/deps/picotls/picotlsvs/picotls/wincompat.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/deps/picotls/picotlsvs/picotls/wincompat.h b/web/server/h2o/libh2o/deps/picotls/picotlsvs/picotls/wincompat.h new file mode 100644 index 00000000..8ff26bfb --- /dev/null +++ b/web/server/h2o/libh2o/deps/picotls/picotlsvs/picotls/wincompat.h @@ -0,0 +1,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 */
\ No newline at end of file |