summaryrefslogtreecommitdiff
path: root/muse2
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-12-11 01:17:26 +0000
committerTim E. Real <termtech@rogers.com>2012-12-11 01:17:26 +0000
commit1c32ad8a7a92e74b22702bbd7c332a217de13ad8 (patch)
treef256c115cf4b0d158dc0f5e7dc89f2ec2a2745f3 /muse2
parent809a67cf14ff73aa08a77cfb8fb88ec0d909049f (diff)
Fix compile errors when ENABLE_VST_NATIVE turned off.
Diffstat (limited to 'muse2')
-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