LV2: fixed compilation without LV2 support or older versions of LV2

LV2 core was not compiled conditionally into LMMS binary so compilation
failed when building without LV2 support. Furthermore added
compatibility code for SLV2 <= 0.6.2.
This commit is contained in:
Tobias Doerffel
2009-05-15 18:23:09 +02:00
parent 582393cdba
commit 40b9b1cb4c
6 changed files with 24 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "lv2_manager.h"
#ifdef LMMS_HAVE_LV2
class EXPORT lv22LMMS : public lv2Manager
{
@@ -76,3 +77,5 @@ private:
} ;
#endif
#endif

View File

@@ -26,6 +26,8 @@
#ifndef _LV2_MANAGER_H
#define _LV2_MANAGER_H
#ifdef LMMS_HAVE_LV2
#include <slv2/world.h>
#include <slv2/plugin.h>
#include <slv2/scalepoint.h>
@@ -378,3 +380,5 @@ private:
extern lv2Manager * static_lv2_manager; // There is only one of these...
#endif
#endif