mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Remove unnecessary parameters
Enhanced msvc cross-compile compatibility
This commit is contained in:
parent
ef15418807
commit
769e78ff7d
1 changed files with 2 additions and 2 deletions
4
cutils.c
4
cutils.c
|
@ -1131,7 +1131,7 @@ void rqsort(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque)
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// From: https://stackoverflow.com/a/26085827
|
// 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);
|
static const uint64_t EPOCH = ((uint64_t)116444736000000000ULL);
|
||||||
|
|
||||||
|
@ -1185,7 +1185,7 @@ uint64_t js__hrtime_ns(void) {
|
||||||
int64_t js__gettimeofday_us(void) {
|
int64_t js__gettimeofday_us(void) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
gettimeofday_msvc(&tv, NULL);
|
gettimeofday_msvc(&tv);
|
||||||
#else
|
#else
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue