aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/simple/Song.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-01 00:25:30 +0100
committerMax Kellermann <max@duempel.org>2015-03-01 00:25:30 +0100
commit605af61a0fe77e7155446dab82666d6517d9e4a3 (patch)
tree367662bc67c38f8770a390ddfdb1ea46a447224a /src/db/plugins/simple/Song.hxx
parent77e163e5b859326c1be2a3649c38542881475d26 (diff)
downloadmpd-605af61a0fe77e7155446dab82666d6517d9e4a3.tar.gz
mpd-605af61a0fe77e7155446dab82666d6517d9e4a3.tar.xz
mpd-605af61a0fe77e7155446dab82666d6517d9e4a3.zip
db/simple: eliminate UpdateFileInArchive() if archive API is disabled
Reduce some unnecessary overhead.
Diffstat (limited to 'src/db/plugins/simple/Song.hxx')
-rw-r--r--src/db/plugins/simple/Song.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx
index 192583681..c83bbace0 100644
--- a/src/db/plugins/simple/Song.hxx
+++ b/src/db/plugins/simple/Song.hxx
@@ -20,6 +20,7 @@
#ifndef MPD_SONG_HXX
#define MPD_SONG_HXX
+#include "check.h"
#include "Chrono.hxx"
#include "tag/Tag.hxx"
#include "Compiler.h"
@@ -109,7 +110,10 @@ struct Song {
void Free();
bool UpdateFile(Storage &storage);
+
+#ifdef ENABLE_ARCHIVE
bool UpdateFileInArchive(const Storage &storage);
+#endif
/**
* Returns the URI of the song in UTF-8 encoding, including its