Skip to content

Commit f6431eb

Browse files
authored
Merge pull request git-for-windows#2092 from dscho/mingw-safer-compat-poll
fixup! poll: lazy-load GetTickCount64()
2 parents ec3a6e5 + bf64148 commit f6431eb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

compat/poll/poll.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,20 +269,6 @@ win32_compute_revents_socket (SOCKET h, int sought, long lNetworkEvents)
269269
return happened;
270270
}
271271

272-
#include <windows.h>
273-
#include "compat/win32/lazyload.h"
274-
275-
static ULONGLONG CompatGetTickCount64(void)
276-
{
277-
DECLARE_PROC_ADDR(kernel32.dll, ULONGLONG, GetTickCount64, void);
278-
279-
if (!INIT_PROC_ADDR(GetTickCount64))
280-
return (ULONGLONG)GetTickCount();
281-
282-
return GetTickCount64();
283-
}
284-
#define GetTickCount64 CompatGetTickCount64
285-
286272
#else /* !MinGW */
287273

288274
/* Convert select(2) returned fd_sets into poll(2) revents values. */

0 commit comments

Comments
 (0)