diff --git a/Sming/Core/DateTime.cpp b/Sming/Core/DateTime.cpp index b4636cc16a..4840e84841 100644 --- a/Sming/Core/DateTime.cpp +++ b/Sming/Core/DateTime.cpp @@ -17,8 +17,10 @@ #if defined(__WIN32) || (defined(ARCH_ESP32) && ESP_IDF_VERSION_MAJOR < 5) static_assert(sizeof(time_t) != 8, "Great! Now supports 64-bit - please update code"); #warning "**Y2038** time_t is only 32-bits in this build configuration" +#elif defined(ARCH_HOST) && !defined(__USE_TIME_BITS64) +#warning "**Y2038** Expecting 64-bit time_t - please use GCC 10 or later" #else -static_assert(sizeof(time_t) == 8, "Expecting 64-bit time_t"); +static_assert(sizeof(time_t) == 8, "Expecting 64-bit time_t - please use GCC 10 or later"); #endif namespace