diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-11-18 20:49:08 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-11-19 17:18:33 -0800 |
commit | 47c837cc426aa62cc41317132a3ec2134cbf3434 (patch) | |
tree | 0a08921961c3c1c974cab72e15f97bb6a5a20fe4 | |
parent | afb062611cad40b9a91f32d51de6541c5e4b3ac4 (diff) | |
download | subsurface-47c837cc426aa62cc41317132a3ec2134cbf3434.tar.gz |
core/picture: don't compile all on mobile
We don't support adding pictures and videos on mobile, so let's not
referernce the infrastrutcture that's needed for that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | core/picture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/picture.c b/core/picture.c index 9440cef35..5981c8d23 100644 --- a/core/picture.c +++ b/core/picture.c @@ -1,7 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 #include "picture.h" #include "dive.h" +#if !defined(SUBSURFACE_MOBILE) #include "metadata.h" +#endif #include "subsurface-string.h" #include "table.h" #include <stdlib.h> @@ -116,6 +118,7 @@ static bool dive_check_picture_time(const struct dive *d, timestamp_t timestamp) return time_from_dive(d, timestamp) < D30MIN; } +#if !defined(SUBSURFACE_MOBILE) /* Creates a picture and indicates the dive to which this picture should be added. * The caller is responsible for actually adding the picture to the dive. * If no appropriate dive was found, no picture is created and NULL is returned. @@ -153,3 +156,4 @@ bool picture_check_valid_time(timestamp_t timestamp, int shift_time) return true; return false; } +#endif |