Fix custom audio files not compiling under MinGW (in case it ever matters)
This commit is contained in:
1 parent
33b2a07759
commit
3f0143ec0f
1 file changed
+1
-1
@@ -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