mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
mono clock: prefer native clock on W32
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
|
||||
#include "mhd_mono_clock.h"
|
||||
|
||||
#if defined(_WIN32) && defined(HAVE_CLOCK_GETTIME)
|
||||
/* Prefer native clock source over wrappers */
|
||||
#undef HAVE_CLOCK_GETTIME
|
||||
#endif /* _WIN32 && HAVE_CLOCK_GETTIME */
|
||||
|
||||
#ifdef HAVE_CLOCK_GET_TIME
|
||||
#include <mach/mach.h>
|
||||
/* for host_get_clock_service(), mach_host_self(), mach_task_self() */
|
||||
|
||||
Reference in New Issue
Block a user