1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-07 04:31:38 +00:00

Split out cases for MINGW32 and MINGW64

This commit is contained in:
sidney 2024-12-27 00:42:29 +01:00
parent f3e8f36f00
commit 328006e500

View File

@ -65,7 +65,11 @@ void PeripheralsWriteByte (uint8_t Addr, uint8_t Val)
struct timespec ts;
#if defined(_MSC_VER)
#if defined(__MINGW64__)
bool time_valid = false;
#elif defined(__MINGW32__)
bool time_valid = false;
#elif defined(_MSC_VER)
/* clock_gettime() is not available in the Visual Studio compiler. Use timespec_get() instead. */
bool time_valid = timespec_get(&ts, TIME_UTC) == TIME_UTC;
#else