You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Fix custom audio files not compiling under MinGW (in case it ever matters)
This commit is contained in:
@@ -8243,7 +8243,7 @@ File *File::open(const char *path, File::AccessMode mode)
|
||||
flags = O_RDONLY;
|
||||
else if (mode == WriteAccess)
|
||||
flags = O_CREAT | O_WRONLY | O_TRUNC;
|
||||
#if defined(WIN32) || defined(__CYGWIN__)
|
||||
#if defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__)
|
||||
flags |= O_BINARY;
|
||||
#endif
|
||||
int fd = ::open(path, flags, 0666);
|
||||
|
||||
Reference in New Issue
Block a user