aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-07 17:18:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-07 17:18:10 -0800
commitc6c3967dd99f198131f3f3e170a6d20d0dc77deb (patch)
tree5910c6163d26a55af8038309be17876b748f5c41 /subsurface-core
parent9d4429c212c4be0c8932e9656a0429519a4b67da (diff)
downloadsubsurface-c6c3967dd99f198131f3f3e170a6d20d0dc77deb.tar.gz
Fix include file ordering problem
Otherwise dc_serial_qt_open() is not declared. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/libdivecomputer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/libdivecomputer.c b/subsurface-core/libdivecomputer.c
index 135be9929..0d0b397dc 100644
--- a/subsurface-core/libdivecomputer.c
+++ b/subsurface-core/libdivecomputer.c
@@ -8,10 +8,10 @@
#include "divelist.h"
#include "display.h"
-#include "libdivecomputer.h"
#include <libdivecomputer/uwatec.h>
#include <libdivecomputer/hw.h>
#include <libdivecomputer/version.h>
+#include "libdivecomputer.h"
/* Christ. Libdivecomputer has the worst configuration system ever. */
#ifdef HW_FROG_H
@@ -965,7 +965,7 @@ const char *do_libdivecomputer_import(device_data_t *data)
dc_serial_t *serial_device = NULL;
if (data->bluetooth_mode) {
-#ifdef BT_SUPPORT
+#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_SERIAL)
rc = dc_serial_qt_open(&serial_device, data->context, data->devname);
#endif
#ifdef SERIAL_FTDI