file binary compat is for windows in general (not msvc)

Fixes crash with MIDI file save/load.
This commit is contained in:
Robin Gareus 2014-10-26 03:10:53 +01:00
parent 14ccde8c6e
commit ec92524fe9
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
#include "i18n.h"
#ifdef COMPILER_MSVC
#ifdef PLATFORM_WINDOWS
#include <fcntl.h> // Needed for '_fmode'
#endif
@ -167,7 +167,7 @@ int ardour_main (int argc, char *argv[])
int main (int argc, char *argv[])
#endif
{
#ifdef COMPILER_MSVC
#ifdef PLATFORM_WINDOWS
// Essential!! Make sure that any files used by Ardour
// will be created or opened in BINARY mode!
_fmode = O_BINARY;