summaryrefslogtreecommitdiffstats
path: root/subsurface-core/libdivecomputer.h
diff options
context:
space:
mode:
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>