Different struct sizeof between linux and windows

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 20 02:45:57 PDT 2016


On Friday, 17 June 2016 at 16:25:15 UTC, Vladimir Panteleev wrote:
> If I were to import the time() function from MSVCR*.dll, what 
> size its return value would be?

MSVC runtime dll doesn't export `time` function, it exports 
_time32 and _time64. `time` is a wrapper in the import library, 
its time_t is probably 32-bit for binary compatibility with code 
compiled before VC2005 that first migrated to 64-bit time_t by 
default.


More information about the Digitalmars-d-learn mailing list