]> sigrok.org Git - pulseview.git/commitdiff
mainbar: fix build without libsigrokdecode
authorBartosz Golaszewski <redacted>
Mon, 3 Dec 2018 14:35:35 +0000 (15:35 +0100)
committerUwe Hermann <redacted>
Mon, 11 Feb 2019 09:20:55 +0000 (10:20 +0100)
We must not include decodesignal.hpp if we're not using libsigrokdecode
or the build will fail due to libsigrokdecode.hpp not being present in
the system.

Signed-off-by: Bartosz Golaszewski <redacted>
pv/toolbars/mainbar.cpp

index df1363db214ab45c3fbd977f5f2e562f0aaa58c7..e517ff78c5cd594f804b55ef4e464f5e9d764c06 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <boost/algorithm/string/join.hpp>
 
-#include <pv/data/decodesignal.hpp>
 #include <pv/devicemanager.hpp>
 #include <pv/devices/hardwaredevice.hpp>
 #include <pv/devices/inputfile.hpp>
@@ -52,6 +51,7 @@
 #include <pv/widgets/importmenu.hpp>
 #ifdef ENABLE_DECODE
 #include <pv/widgets/decodermenu.hpp>
+#include <pv/data/decodesignal.hpp>
 #endif
 
 #include <libsigrokcxx/libsigrokcxx.hpp>