[SCM] calf/master: + Framework: unbreak compilation without LV2 core installed

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:56 UTC 2013


The following commit has been merged in the master branch:
commit 2e151c4b54270260fe3b3ddf1b0626ec84ef6460
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Oct 30 19:09:52 2008 +0000

    + Framework: unbreak compilation without LV2 core installed

diff --git a/src/calf/modules_small.h b/src/calf/modules_small.h
index c0c783d..b6781f7 100644
--- a/src/calf/modules_small.h
+++ b/src/calf/modules_small.h
@@ -21,6 +21,8 @@
 #ifndef __CALF_MODULES_SMALL_H
 #define __CALF_MODULES_SMALL_H
 
+#if USE_LV2
+
 /// Empty implementations for plugin functions. Note, that functions aren't virtual, because they're called via the particular
 /// subclass via template wrappers (ladspa_small_wrapper<> etc), not via base class pointer/reference
 class null_small_audio_module
@@ -57,4 +59,7 @@ public:
     /// Output pointers
     float *outs[out_count];
 };
+
+#endif
+
 #endif
diff --git a/src/modules.cpp b/src/modules.cpp
index f9f307f..f8a17bd 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -31,7 +31,9 @@
 
 using namespace synth;
 
+#if USE_LV2
 template<class Module> LV2_Descriptor lv2_small_wrapper<Module>::descriptor;
+#endif
 
 const char *synth::calf_copyright_info = "(C) 2001-2008 Krzysztof Foltman, license: LGPL";
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list