#include <gtkmm2ext/utils.h>
#include "version.h"
-#include "utils.h"
#include "ardour_ui.h"
#include "opts.h"
#include "enums.h"
#include "i18n.h"
-#ifdef COMPILER_MSVC
+#ifdef PLATFORM_WINDOWS
#include <fcntl.h> // Needed for '_fmode'
#endif
+#ifdef WAF_BUILD
+#include "gtk2ardour-version.h"
+#endif
+
using namespace std;
using namespace Gtk;
using namespace ARDOUR_COMMAND_LINE;
return false; /* do not call again */
}
+#ifndef PLATFORM_WINDOWS
static void
sigpipe_handler (int /*signal*/)
{
done_the_backend_thing = true;
}
}
+#endif
#if (defined(COMPILER_MSVC) && defined(NDEBUG) && !defined(RDC_BUILD))
/*
int main (int argc, char *argv[])
#endif
{
-#ifdef COMPILER_MSVC
- // 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 */