mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
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.
This commit is contained in:
parent
80d4142c18
commit
4b751f9e87
2 changed files with 10 additions and 6 deletions
|
|
@ -169,12 +169,6 @@ int ardour_main (int argc, char *argv[])
|
|||
int main (int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
// Essential!! Make sure that any files used by Ardour
|
||||
// will be created or opened in BINARY mode!
|
||||
_fmode = O_BINARY;
|
||||
#endif
|
||||
|
||||
fixup_bundle_environment (argc, argv, &localedir);
|
||||
|
||||
load_custom_fonts(); /* needs to happen before any gtk and pango init calls */
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue