From 0df576ed7d009e3d092305f7e206c5886f7d6c61 Mon Sep 17 00:00:00 2001 From: CatWindow Date: Thu, 13 Aug 2026 16:29:35 +0300 Subject: [PATCH] windows gettimeofday sys func conflict fix --- src/graphics.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/graphics.cpp b/src/graphics.cpp index 4508175..5723ea0 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -19,6 +19,10 @@ ** along with mkxp. If not, see . */ +#if windows + #define HAVE_GETTIMEOFDAY 1 +#endif + #include "graphics.h" #include "util.h" @@ -46,6 +50,9 @@ #include #ifndef _MSC_VER +#if windows + #define _SYS_TIME_H_ +#endif #include #endif #include