This PR allows utiltime.cpp to compile with msvc after the changes introduced in #12973.
Fix for utiltime to compile with msvc. #13031
pull sipsorcery wants to merge 1 commits into bitcoin:master from sipsorcery:msvc_gmtime changing 1 files +12 −0-
sipsorcery commented at 10:46 PM on April 19, 2018: member
-
Fix for utiltime to compile with msvc. abd58a2fca
- fanquake added the label Windows on Apr 19, 2018
- fanquake added the label Utils/log/libs on Apr 19, 2018
-
theuni commented at 11:19 PM on April 19, 2018: member
I closed #9566 because I thought it was getting out of hand, but since we're going that way anyway, here's how my attempt at it looked back then: https://github.com/bitcoin/bitcoin/pull/9566/files#diff-8e9b29a6133dd7bf43643c37c5c4689aR27
-
in src/utiltime.cpp:108 in abd58a2fca
103 | time_t time_val = nTime; 104 | +#ifdef _MSC_VER 105 | + gmtime_s(&ts, &time_val); 106 | +#else 107 | gmtime_r(&time_val, &ts); 108 | +#endif
laanwj commented at 4:12 PM on April 20, 2018:Please factor this out to a function to prevent repetition.
laanwj commented at 3:14 PM on April 26, 2018: memberutACK abd58a2fcae767e9074c49b64e9c89e5168d7005 I'm just going to merge this, if it fixes the build it shouldn't be open for weeks, can be improved later if necessary.
laanwj merged this on Apr 26, 2018laanwj closed this on Apr 26, 2018laanwj referenced this in commit 826acc9a3d on Apr 26, 2018sipsorcery deleted the branch on Jun 19, 2019random-zebra referenced this in commit 14060430d9 on May 5, 2021UdjinM6 referenced this in commit 195fdfad5e on May 21, 2021UdjinM6 referenced this in commit eac133cea4 on May 25, 2021TheArbitrator referenced this in commit 7559d807f1 on Jun 4, 2021DrahtBot locked this on Dec 16, 2021ContributorsLabels
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me