diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-10 12:33:44 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-10 12:33:44 -0700 |
commit | a3ead9fb862207749d23368db9b857559c0dde78 (patch) | |
tree | 9e9e4fe58a2f68c4fba11946c9c3d4064e726cd4 /libdivecomputer.h | |
parent | 4033625567eafbb2c3c69da9189a0b0c87b74abc (diff) | |
download | subsurface-a3ead9fb862207749d23368db9b857559c0dde78.tar.gz |
Update for libdivecomputer pkg-config include file changes
Subsurface doesn't compile on OS X any more, because libdivecomputer
changed the way the header inclusion works: the include path from
pkg-config no longer includes the final "libdivecomputer" component, and
instead of doing
#include <header.h>
for libdivecomputer headers, we're now supposed to do
#include <libdivecomputer/header.h>
instead. Which is cleaner anyway.
The reason this only bit us on OS X is that I never trusted pkg-config
that much for non-system libraries on Linux (maybe it works, maybe it
doesn't, I've seen it go both ways), so on Linux we just used our own
version of the include path, and thus weren't affected by the
libdivecomputer config change.
Clean up the includes while at it - we no longer need (or want) the
device-specific header files, since we just use the generic functions.
Reported-by: Grischa Toedt <toedt@embl.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'libdivecomputer.h')
-rw-r--r-- | libdivecomputer.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libdivecomputer.h b/libdivecomputer.h index 633b3b1b1..8d77a25be 100644 --- a/libdivecomputer.h +++ b/libdivecomputer.h @@ -2,17 +2,9 @@ #define LIBDIVECOMPUTER_H /* libdivecomputer */ -#include <device.h> -#include <suunto.h> -#include <reefnet.h> -#include <uwatec.h> -#include <oceanic.h> -#include <mares.h> -#include <hw.h> -#include <cressi.h> -#include <zeagle.h> -#include <atomics.h> -#include <utils.h> +#include <libdivecomputer/device.h> +#include <libdivecomputer/parser.h> +#include <libdivecomputer/utils.h> /* handling uemis Zurich SDA files */ #include "uemis.h" |