Different struct sizeof between linux and windows

Andre Pany via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 17 03:19:08 PDT 2016


On Friday, 17 June 2016 at 07:11:28 UTC, Vladimir Panteleev wrote:
> On Friday, 17 June 2016 at 06:54:36 UTC, Andre Pany wrote:
>> Is this behavior correct?
>
> Yes. time_t is defined as C long on Linux (meaning it'll be 
> 64-bit in 64-bit programs), however it's always 32-bit on the 
> Windows C runtimes we use.

Thanks for clarification.

Kind regards
André


More information about the Digitalmars-d-learn mailing list