Skip to content

Commit d532744

Browse files
committed
Don't include sys/time.h for mingw32
1 parent 3907eff commit d532744

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <stdarg.h>
2929
#include <string.h>
3030
#include <time.h>
31-
#if !defined(_MSC_VER) || __MINGW32__
31+
#if !defined(_MSC_VER) || !__MINGW32__
3232
#include <sys/time.h>
3333
#endif
3434

quickjs-libc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#endif
3434
#include <errno.h>
3535
#include <fcntl.h>
36-
#if !defined(_MSC_VER)
36+
#if !defined(_MSC_VER) || !__MINGW32__
3737
#include <sys/time.h>
3838
#endif
3939
#include <time.h>

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <inttypes.h>
3131
#include <string.h>
3232
#include <assert.h>
33-
#if !defined(_MSC_VER)
33+
#if !defined(_MSC_VER) || !__MINGW32__
3434
#include <sys/time.h>
3535
#if defined(_WIN32)
3636
#include <timezoneapi.h>

0 commit comments

Comments
 (0)