From 9efeba1f9fe4719d3db5079bf3fd9ce82a2bfaf9 Mon Sep 17 00:00:00 2001 From: DH Date: Sat, 5 Apr 2025 00:48:40 +0300 Subject: [PATCH] fix windows build --- rpcs3/rpcs3/dev/iso.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3/dev/iso.hpp b/rpcs3/rpcs3/dev/iso.hpp index 85c70cc9c..19800ceb4 100644 --- a/rpcs3/rpcs3/dev/iso.hpp +++ b/rpcs3/rpcs3/dev/iso.hpp @@ -68,7 +68,16 @@ namespace iso time.tm_hour = hour; time.tm_min = minute; time.tm_sec = second; - time.tm_gmtoff = gmt_offset; + + auto set_tm_gmtoff2 = [](auto& t, s8 gmt_offset) + { + if constexpr (requires { t.tm_gmtoff = gmt_offset; }) + { + t.tm_gmtoff = gmt_offset; + } + }; + + set_tm_gmtoff2(time, gmt_offset); return time; }