summaryrefslogtreecommitdiffstats
path: root/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-01-26 20:01:01 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-26 11:22:08 -0800
commit4508a3cea41c750b74e796458307d868a0fc3d8c (patch)
tree33e94c37f5ff1b8d6bee56c5107c593cfa4e3cee /configuredivecomputerthreads.cpp
parent81c0f39fa797578006ba309c00d604b0cea45748 (diff)
downloadsubsurface-4508a3cea41c750b74e796458307d868a0fc3d8c.tar.gz
ifdef hw_ostc3_device_config_{read,write} usage
hw_ostc3_device_config_{read,write} came into existence in libdivecomputer 0.5.0 series, and by accident lost there ifdef's when they moved out to separate functions. This returns those ifdefs. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r--configuredivecomputerthreads.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index f1434f660..418a7930e 100644
--- a/configuredivecomputerthreads.cpp
+++ b/configuredivecomputerthreads.cpp
@@ -378,6 +378,7 @@ static dc_status_t write_suunto_vyper_settings(dc_device_t *device, DeviceDetail
#undef EMIT_PROGRESS
+#if DC_VERSION_CHECK(0, 5, 0)
static dc_status_t read_ostc3_settings(dc_device_t *device, DeviceDetails *m_deviceDetails)
{
dc_status_t rc;
@@ -820,6 +821,7 @@ static dc_status_t write_ostc3_settings(dc_device_t *device, DeviceDetails *m_de
return rc;
}
+#endif /* DC_VERSION_CHECK(0, 5, 0) */
static dc_status_t read_ostc_settings(dc_device_t *device, DeviceDetails *m_deviceDetails)
{