summaryrefslogtreecommitdiffstats
path: root/qtserialbluetooth.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-07 11:47:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-07 21:41:22 -0700
commitfa69a1b7d5655cef790f4bf78f43d322ba78e3d3 (patch)
tree9004394c20b9732b74fc24622cb9dc9cabad2035 /qtserialbluetooth.cpp
parentfe8605ed5b31d6dc6be485e3c58006410667c26d (diff)
downloadsubsurface-fa69a1b7d5655cef790f4bf78f43d322ba78e3d3.tar.gz
Allow to compile Subsurface with upstream libdivecomputer
This will create an inconsistent build that has some UI features implying BT support but those will be non-functional. I don't think this is the right thing to do - either fail to build with a decent message or really remove the BT support. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qtserialbluetooth.cpp')
-rw-r--r--qtserialbluetooth.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qtserialbluetooth.cpp b/qtserialbluetooth.cpp
index dc67cf17f..0e344f5eb 100644
--- a/qtserialbluetooth.cpp
+++ b/qtserialbluetooth.cpp
@@ -6,6 +6,10 @@
#include <QTimer>
#include <QDebug>
+#include <libdivecomputer/version.h>
+
+#if defined(SSRF_CUSTOM_SERIAL)
+
#include <libdivecomputer/custom_serial.h>
extern "C" {
@@ -246,3 +250,4 @@ dc_status_t dc_serial_qt_open(dc_serial_t **out, dc_context_t *context, const ch
return DC_STATUS_SUCCESS;
}
}
+#endif