diff --git a/helpers/common_helpers.cpp b/helpers/common_helpers.cpp index 8d5cb5c5..de27aeb5 100644 --- a/helpers/common_helpers.cpp +++ b/helpers/common_helpers.cpp @@ -420,7 +420,7 @@ std::string common_helpers::get_utc_time() std::tm utc_time{}; bool is_ok{}; -#if defined(__GNUC__) || defined(POSIX) +#if defined(__linux__) || defined(linux) is_ok = !!gmtime_s(&time, &utc_time); #else is_ok = !gmtime_s(&utc_time, &time);