summaryrefslogtreecommitdiffstats
path: root/subsurface-core/libdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2016-03-06 06:52:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-06 11:03:00 -0800
commit39313c5b3340683b9e4475987308dac24491a982 (patch)
tree5507c58efe70499262b2e24b2bd24ef6ec9e7f4c /subsurface-core/libdivecomputer.h
parent710b3615fe875cd99a78f643790201b587ffef97 (diff)
downloadsubsurface-39313c5b3340683b9e4475987308dac24491a982.tar.gz
Clean up handling of various include file
This is in the context of the iOS port and shouldn't impact any of the other builds. [Dirk Hohndel: refactored the iOS patches] Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/libdivecomputer.h')
-rw-r--r--subsurface-core/libdivecomputer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-core/libdivecomputer.h b/subsurface-core/libdivecomputer.h
index f52f6959a..99f1c2490 100644
--- a/subsurface-core/libdivecomputer.h
+++ b/subsurface-core/libdivecomputer.h
@@ -7,7 +7,9 @@
#ifdef DC_VERSION /* prevent a warning with wingdi.h */
#undef DC_VERSION
#endif
+#ifdef HAVE_LIBDIVECOMPUTER
#include <libdivecomputer/version.h>
+#endif
#include <libdivecomputer/device.h>
#include <libdivecomputer/parser.h>