mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
afb062611c
commit
47c837cc42
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue