From 6ccde66c863c0cad8593c0344567c95e55285219 Mon Sep 17 00:00:00 2001 From: sidney Date: Fri, 27 Dec 2024 02:06:15 +0100 Subject: [PATCH] Enable timespec_get in MINGW64 code path to see if that works (6). --- src/sim65/peripherals.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sim65/peripherals.c b/src/sim65/peripherals.c index ea402ccb6..20393cc1d 100644 --- a/src/sim65/peripherals.c +++ b/src/sim65/peripherals.c @@ -72,9 +72,10 @@ void PeripheralsWriteByte (uint8_t Addr, uint8_t Val) bool time_valid = false; #elif defined(__MINGW32__) /* does timespec_get work? -- yes! */ - /* does clock_gettime work? */ + /* does clock_gettime work? -- yes! */ //bool time_valid = false; - bool time_valid = clock_gettime(CLOCK_REALTIME, &ts) == 0; + //bool time_valid = clock_gettime(CLOCK_REALTIME, &ts) == 0; + #error "MinGW32 compiler was used; we're not handling it." //bool time_valid = timespec_get(&ts, TIME_UTC) == TIME_UTC; #elif defined(_MSC_VER) /* clock_gettime() is not available when using the Microsoft compiler. Use timespec_get() instead. */