This moves setting of _fmode slightly later in the initialization
of the application via Ardour::init.
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 */
#include <iostream>
#include <cstdlib>
+#ifdef PLATFORM_WINDOWS
+#include <fcntl.h>
+#endif
+
#include <giomm.h>
#include <glibmm/thread.h>
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();
}