mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
fix windows build
This commit is contained in:
parent
788dbfbf49
commit
9efeba1f9f
1 changed files with 10 additions and 1 deletions
|
|
@ -68,7 +68,16 @@ namespace iso
|
||||||
time.tm_hour = hour;
|
time.tm_hour = hour;
|
||||||
time.tm_min = minute;
|
time.tm_min = minute;
|
||||||
time.tm_sec = second;
|
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;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue