Fix the mingw32 build of qjs

This commit is contained in:
pancake 2024-09-27 18:33:57 +02:00 committed by pancake
parent c2e7795bfb
commit 86529d7cf6

View File

@ -1129,7 +1129,7 @@ void rqsort(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque)
/*---- Portable time functions ----*/
#if defined(_MSC_VER)
#if __MINGW32__ || defined(_MSC_VER)
// From: https://stackoverflow.com/a/26085827
static int gettimeofday_msvc(struct timeval *tp, struct timezone *tzp)
{