From 74f12b449888de87396e2f456ce68cca7edca296 Mon Sep 17 00:00:00 2001 From: sidney Date: Fri, 27 Dec 2024 01:12:04 +0100 Subject: [PATCH] Enable timespec_get in MINGW64 code path to see if that works (2). --- src/sim65/peripherals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sim65/peripherals.c b/src/sim65/peripherals.c index c7b465872..7d0df91bc 100644 --- a/src/sim65/peripherals.c +++ b/src/sim65/peripherals.c @@ -67,10 +67,10 @@ void PeripheralsWriteByte (uint8_t Addr, uint8_t Val) #if defined(__MINGW64__) /* We check for MINGW64 before MINGW32, since MINGW64 also defines __MINGW32__. */ - /* does timespec_get work? */ + /* Using timespec_get() in the MinGW64 compiler makes the Linux workflow build fail. */ bool time_valid = timespec_get(&ts, TIME_UTC) == TIME_UTC; /* does clock_gettime work? */ - bool time_valid = false; + //bool time_valid = false; #elif defined(__MINGW32__) /* does timespec_get work? */ /* does clock_gettime work? */