summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muse2/muse/widgets/vst_native_editor.cpp5
-rw-r--r--muse2/muse/widgets/vst_native_editor.h10
2 files changed, 13 insertions, 2 deletions
diff --git a/muse2/muse/widgets/vst_native_editor.cpp b/muse2/muse/widgets/vst_native_editor.cpp
index 9c5b59d1..dec9d3f5 100644
--- a/muse2/muse/widgets/vst_native_editor.cpp
+++ b/muse2/muse/widgets/vst_native_editor.cpp
@@ -21,6 +21,8 @@
//
//=========================================================
+#ifdef VST_NATIVE_SUPPORT
+
#include "vst_native_editor.h"
#include "vst_native.h"
@@ -231,3 +233,6 @@ void VstNativeEditor::moveEvent(QMoveEvent *pMoveEvent)
}
} // namespace MusEGui
+
+#endif // VST_NATIVE_SUPPORT
+
diff --git a/muse2/muse/widgets/vst_native_editor.h b/muse2/muse/widgets/vst_native_editor.h
index 1f591275..4f06a453 100644
--- a/muse2/muse/widgets/vst_native_editor.h
+++ b/muse2/muse/widgets/vst_native_editor.h
@@ -24,10 +24,10 @@
#ifndef __VST_NATIVE_EDITOR_H__
#define __VST_NATIVE_EDITOR_H__
-//#include "vst_native.h"
-//#include <QtGlobal>
#include <QWidget>
+#ifdef VST_NATIVE_SUPPORT
+
#if defined(Q_WS_X11)
#include <QX11Info>
#include <X11/Xlib.h>
@@ -50,12 +50,16 @@ namespace MusECore {
class VstNativeSynthIF;
}
+#endif // VST_NATIVE_SUPPORT
+
namespace MusEGui {
class VstNativeEditor : public QWidget
{
Q_OBJECT
+#ifdef VST_NATIVE_SUPPORT
+
#if defined(Q_WS_X11)
Display* _display;
Window _vstEditor;
@@ -84,6 +88,8 @@ public:
#endif
//MusECore::VstNativeSynthIF* sif() const { return _sif; }
+
+#endif // VST_NATIVE_SUPPORT
};
} // namespace MusEGui