On Fri, Jan 21, 2022 at 6:47 PM LRN <[email protected]> wrote: > > On 21.01.2022 17:32, Christoph Reiter wrote: > > > > when _FILE_OFFSET_BITS is defined (ideally Windows code shouldn't > > depend on it, but here we are) mingw-w64 does this: > > > > https://github.com/mingw-w64/mingw-w64/blob/898141aa957b99812f2f4d2cf89255798d578d54/mingw-w64-headers/crt/sys/stat.h#L279 > > > > This seems to be done on purpose, to transparently turn "stat" into a > structure > with 64-bit st_size and, possibly, 64-bit time fields.
uh, I was only thinking of the functions because the struct is called __stat64 and not _stat64, but turns that gets redefined too to _stat64 in a different place. This seems tricky. I guess I'll have to make sure nothing sets/needs _FILE_OFFSET_BITS then. thanks _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
