Closed GavinRay97 closed 2 years ago
There is a deeper reason which is large file support. (as enabled by the definition _FILE_OFFSET_BITS=64
)
On Windows, this stuff works on MinGW only.
The better thing to do is not enable the above definition on Windows OS, since, for support of visual studio, I replace it with the i64
-suffixed versions of file functions.
(it happens that stat
has such an equivalent as _stati64
, but i don't actually need that one for LFS scenarios)
most likely fixed in 7de8e44
Confirmed fixed, thanks!
Not your problem, but documenting just in case others run into this The duct-tape fix is to change the definition in
win32_utf8.c
to usestruct _stat64
instead ofstruct stat