Skip to content

Commit

Permalink
Remove unnecessary parameters
Browse files Browse the repository at this point in the history
Enhanced msvc cross-compile compatibility
  • Loading branch information
morn-0 authored and saghul committed Nov 20, 2024
1 parent ef15418 commit 769e78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 769e78f

Please sign in to comment.