diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-11-05 11:24:39 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2014-12-03 17:31:05 +0700 |
commit | 4b751f9e87b293a82aea295a5329823ea2f3a788 (patch) | |
tree | ac9d4784e812c1dd1dfa1aa3aeddef53a978a379 /libs/pbd/pbd.cc | |
parent | 80d4142c18268845cc77451c0a1521f0bad053f3 (diff) |
Move setting _fmode flag on windows into PBD::init
This moves setting of _fmode slightly later in the initialization
of the application via Ardour::init.
Diffstat (limited to 'libs/pbd/pbd.cc')
-rw-r--r-- | libs/pbd/pbd.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/pbd/pbd.cc b/libs/pbd/pbd.cc index 1bf977c90a..738a676d4c 100644 --- a/libs/pbd/pbd.cc +++ b/libs/pbd/pbd.cc @@ -20,6 +20,10 @@ #include <iostream> #include <cstdlib> +#ifdef PLATFORM_WINDOWS +#include <fcntl.h> +#endif + #include <giomm.h> #include <glibmm/thread.h> @@ -46,6 +50,12 @@ PBD::init () return true; } +#ifdef PLATFORM_WINDOWS + // Essential!! Make sure that any files used by Ardour + // will be created or opened in BINARY mode! + _fmode = O_BINARY; +#endif + if (!Glib::thread_supported()) { Glib::thread_init(); } |