From 769e78ff7d0e6078a1b6dd76ed57c158ca678302 Mon Sep 17 00:00:00 2001 From: morn-0 <90960002+morn-0@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:51:47 +0800 Subject: [PATCH] Remove unnecessary parameters Enhanced msvc cross-compile compatibility --- cutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cutils.c b/cutils.c index 507c30c..b17756b 100644 --- a/cutils.c +++ b/cutils.c @@ -1131,7 +1131,7 @@ void rqsort(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque) #ifdef _WIN32 // From: https://stackoverflow.com/a/26085827 -static int gettimeofday_msvc(struct timeval *tp, struct timezone *tzp) +static int gettimeofday_msvc(struct timeval *tp) { static const uint64_t EPOCH = ((uint64_t)116444736000000000ULL); @@ -1185,7 +1185,7 @@ uint64_t js__hrtime_ns(void) { int64_t js__gettimeofday_us(void) { struct timeval tv; #ifdef _WIN32 - gettimeofday_msvc(&tv, NULL); + gettimeofday_msvc(&tv); #else gettimeofday(&tv, NULL); #endif