diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-26 09:22:52 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | 635560092fbe8a6bdbf93c0781bc65032da25135 (patch) | |
tree | b9886427b48280b37706ba63bf600d5373194445 /src/first.h | |
parent | 00877719ff4ad81bcf9057dee3e4e39f8fdd5382 (diff) | |
download | lighttpd-git-635560092fbe8a6bdbf93c0781bc65032da25135.tar.gz |
[core] _WIN32 clock ticks and time
Diffstat (limited to 'src/first.h')
-rw-r--r-- | src/first.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/first.h b/src/first.h index d11f82cf..cfd1c694 100644 --- a/src/first.h +++ b/src/first.h @@ -30,8 +30,15 @@ #ifdef _WIN32 /* https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers */ /* http://web.archive.org/web/20121219084749/http://support.microsoft.com/kb/166474 */ +/* _WIN32_WINNT 0x0600 or greater for GetTickCount64(); 0x0A00 for Windows 10 */ #define WIN32_LEAN_AND_MEAN #define VC_EXTRALEAN +#ifndef WINVER +#define WINVER 0x0A00 +#endif +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0A00 +#endif /* https://learn.microsoft.com/en-us/windows/win32/winsock/default-state-for-a-socket-s-overlapped-attribute-2 */ #ifndef FD_SETSIZE #define FD_SETSIZE 4096 |