diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-22 17:53:53 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-22 17:53:53 -0700 |
commit | 63a4a755a308be6141202123248abc9ddc131153 (patch) | |
tree | 4f7b2a08bc189122435477628e0be214435aea4d /core/libdivecomputer.c | |
parent | d58de3716718207b9fe53fdd451c9d1e35bff38a (diff) | |
download | subsurface-63a4a755a308be6141202123248abc9ddc131153.tar.gz |
Warn when not compiling against the matching libdc version
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 7f0a459fc..2f0a303e3 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -17,6 +17,16 @@ #include <libdivecomputer/version.h> #include "libdivecomputer.h" +#if !defined(SSRF_LIBDC_VERSION) +#pragma message "You are not compiling against the Subsurface branch of libdivecomputer" +#pragma message "While this may still work, you are missing important features of Subsurface" +#pragma message "Please get it from http://github.com/Subsurface-divelog/libdc Subsurface-branch" +#else +#if !defined(SSRF_CUSTOM_IO) +#pragma message "You are compiling against an older version of the Subsurface branch of libdivecomputer" +#pragma message "which doesn't support the new SSRF_CUSTOM_IO model. Please update libdc" +#endif +#endif // // If we have an old libdivecomputer, it doesn't // have the new DC_TANKINFO bits, but just volume |