mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-04 15:50:10 +01:00
fix windows build
This commit is contained in:
parent
788dbfbf49
commit
9efeba1f9f
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue