Fix custom audio files not compiling under MinGW (in case it ever matters)

This commit is contained in:
gheskett
2022-03-13 18:57:17 -04:00
parent 33b2a07759
commit 3f0143ec0f

View File

@@ -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);