Force files into binary mode on Windows
Jeffrey Pfau jeffrey@endrift.com
Sat, 25 Oct 2014 01:45:42 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/util/vfs.c
→
src/util/vfs.c
@@ -42,6 +42,9 @@ struct VFile* VFileOpen(const char* path, int flags) {
if (!path) { return 0; } +#ifdef _WIN32 + flags |= O_BINARY; +#endif int fd = open(path, flags, 0666); return VFileFromFD(fd); }