From c6c3967dd99f198131f3f3e170a6d20d0dc77deb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 7 Mar 2016 17:18:10 -0800 Subject: Fix include file ordering problem Otherwise dc_serial_qt_open() is not declared. Signed-off-by: Dirk Hohndel --- subsurface-core/libdivecomputer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subsurface-core') 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 #include #include +#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 -- cgit v1.2.3-70-g09d2