summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-04-14 17:54:21 +0200
committerRobin Gareus <robin@gareus.org>2014-04-14 17:54:21 +0200
commit18d4fd9f3719ba86587d42acbd549aad801be9ea (patch)
treee6ee2ad382cb07aa534322e806042ca3f3e399f9 /gtk2_ardour/main.cc
parent57f09d5d9d4a30dd1b196d63edad3e4e20c50ede (diff)
fun with the c-preprocessor. platform dependent VST support.
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc22
1 files changed, 14 insertions, 8 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index 9c2036290c..5a1cd4de3d 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -138,9 +138,15 @@ sigpipe_handler (int /*signal*/)
}
}
-#if (defined(LXVST_SUPPORT) || (defined(COMPILER_MSVC) && defined(NDEBUG) && !defined(RDC_BUILD)))
+#if (defined WINDOWS_VST_SUPPORT && !defined PLATFORM_WINDOWS)
+/*
+ * Release build with MSVC uses ardour_main()
+ */
+int ardour_main (int argc, char *argv[])
-#ifdef LXVST_SUPPORT
+#elif (defined WINDOWS_VST_SUPPORT && !defined PLATFORM_WINDOWS)
+
+// prototype for function in windows_vst_plugin_ui.cc
extern int windows_vst_gui_init (int* argc, char** argv[]);
/* this is called from the entry point of a wine-compiled
@@ -148,7 +154,7 @@ extern int windows_vst_gui_init (int* argc, char** argv[]);
as a shared library.
*/
extern "C" {
-#endif
+
int ardour_main (int argc, char *argv[])
#else
@@ -167,10 +173,10 @@ int main (int argc, char *argv[])
gtk_set_locale ();
#endif
-#ifdef LXVST_SUPPORT
- /* this does some magic that is needed to make GTK and Wine's own
- X11 client interact properly.
- */
+#ifdef WINDOWS_VST_SUPPORT
+ /* this does some magic that is needed to make GTK and X11 client interact properly.
+ * the platform dependent code is in windows_vst_plugin_ui.cc
+ */
windows_vst_gui_init (&argc, &argv);
#endif
@@ -263,6 +269,6 @@ int main (int argc, char *argv[])
return 0;
}
-#ifdef LXVST_SUPPORT
+#if (defined WINDOWS_VST_SUPPORT && !defined PLATFORM_WINDOWS)
} // end of extern "C" block
#endif