Why is time_t defined as a 32-bit type on Windows?
andrej.mitrovich at gmail.com
Wed Aug 5 16:19:27 UTC 2020
On Wednesday, 5 August 2020 at 16:13:19 UTC, Andrej Mitrovic
> C:\dev> rdmd -m64 --eval="import core.stdc.time;
> According to MSDN this should not be the case:
>> time is a wrapper for _time64 and **time_t is, by default,
>> equivalent to __time64_t**.
> But in Druntime it's defined as a 32-bit type:
It looks like this definition was there from at least 2008 (!!),
and probably earlier than that but I don't have the SVN sources:
So basically, just around the time the first 64-bit version of
Windows was released. I'm guessing it was just neglected..
More information about the Digitalmars-d-learn