Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os_compat: use correct struct stat in Windows
The stat macro in os_compat.h shadowed the stat macro in mingw64 headers, which caused proceeding code to use a stat structure with 32-bit st_size instead of the 64-bit struct _stat64 used by win32_stat and _wstat64. Those structs have a different size, which was causing win32_stat to corrupt adjacent variables on the stack. Since using macros for stat is tricky, avoid macros by defining crip_stat instead.
- Loading branch information