diff --git a/frontend/services/power_service/power/Utility.cpp b/frontend/services/power_service/power/Utility.cpp index 2435ce934d..d4d193c050 100644 --- a/frontend/services/power_service/power/Utility.cpp +++ b/frontend/services/power_service/power/Utility.cpp @@ -2,6 +2,7 @@ #ifdef MEGAMOL_USE_POWER +#include #include namespace megamol::power { @@ -88,6 +89,7 @@ std::tuple parse_hmc_file(std::str auto const ms_str = std::string(val_str.begin() + ms_pos + 1, val_str.end()); t_ms = std::stoi(ms_str); } +#ifdef _WIN32 // TODO this does only work with gcc >= 14 std::chrono::utc_clock::time_point tp; std::istringstream time_stream(date_str + "T" + time_str); if (std::chrono::from_stream(time_stream, "%FT%T", tp)) { @@ -97,7 +99,11 @@ std::tuple parse_hmc_file(std::str ft_offset) .count(); std::get(vals.at(col_names[i])).push_back(ts); - } else { + } else +#else +#warning "Fix me!!! Disable time point parsing on Linux as std::chrono::from_stream is only available with gcc >= 14." +#endif + { throw std::runtime_error("could not parse UTC time"); } } else {