diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-12 17:56:06 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-12 17:57:10 +0100 |
commit | 3bd3dc04b1cffbea49abf4d16a624bd9cf5b4d20 (patch) | |
tree | 27e06a8aaafd2d3992a1ca2f0db10073040b05e8 /gtk2_ardour/main.cc | |
parent | 9ec393422f960f98a3a970805699b2bd05ec803c (diff) |
fix 0096aa5 (at least for mingw)
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index faf0578701..7c46e1d10b 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -203,20 +203,24 @@ console_madness_end () } } -#if defined(NDEBUG) && !defined(RDC_BUILD)) -// Since we don't ordinarily have access to stdout and stderr with -// an MSVC app, let the user know we encountered a parsing error. -static void -command_line_parse_error (int* argc, char** argv[]) -{ - Gtk::Main app(&argc, &argv); // Calls 'gtk_init()' - - Gtk::MessageDialog msg (_("\n Ardour could not understand your command line "), - false, MESSAGE_ERROR, BUTTONS_CLOSE, true); - msg.set_title (_("An error was encountered while launching Ardour")); - msg.run (); +static void command_line_parse_error (int *argc, char** argv[]) {} + +#elif (defined(COMPILER_MSVC) && defined(NDEBUG) && !defined(RDC_BUILD)) + +// these are not used here. for MSVC see gtk2_ardour/msvc/winmain.cc +static void console_madness_begin () {} +static void console_madness_end () {} + +static void command_line_parse_error (int *argc, char** argv[]) { + // Since we don't ordinarily have access to stdout and stderr with + // an MSVC app, let the user know we encountered a parsing error. + Gtk::Main app(&argc, &argv); // Calls 'gtk_init()' + + Gtk::MessageDialog dlgReportParseError (_("\n Ardour could not understand your command line "), + false, MESSAGE_ERROR, BUTTONS_CLOSE, true); + dlgReportParseError.set_title (_("An error was encountered while launching Ardour")); + dlgReportParseError.run (); } -#endif #else static void console_madness_begin () {} |