From 627e9df708e282f36b48588c97b471773945cb99 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sat, 8 Jun 2024 02:19:34 +0300 Subject: [PATCH] fix the linux condition --- helpers/common_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);