From 3f0143ec0f0c866f851d41d9d7a2b5de321e08db Mon Sep 17 00:00:00 2001 From: gheskett Date: Sun, 13 Mar 2022 18:57:17 -0400 Subject: [PATCH] Fix custom audio files not compiling under MinGW (in case it ever matters) --- tools/audiofile/audiofile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/audiofile/audiofile.cpp b/tools/audiofile/audiofile.cpp index 163237b5b..459bc33ee 100644 --- a/tools/audiofile/audiofile.cpp +++ b/tools/audiofile/audiofile.cpp @@ -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);