From 47c837cc426aa62cc41317132a3ec2134cbf3434 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 18 Nov 2020 20:49:08 +0000 Subject: 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 --- core/picture.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/picture.c') 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 @@ -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 -- cgit v1.2.3-70-g09d2