aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index 0f3e9b172..665783279 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -39,6 +39,8 @@
#include <string.h>
#include <sys/stat.h>
+#ifdef ENABLE_DATABASE
+
Song *
Song::LoadFile(const char *path_utf8, Directory &parent)
{
@@ -64,6 +66,8 @@ Song::LoadFile(const char *path_utf8, Directory &parent)
return song;
}
+#endif
+
/**
* Attempts to load APE or ID3 tags from the specified file.
*/
@@ -75,6 +79,8 @@ tag_scan_fallback(Path path,
tag_id3_scan(path, handler, handler_ctx);
}
+#ifdef ENABLE_DATABASE
+
bool
Song::UpdateFile()
{
@@ -125,6 +131,8 @@ Song::UpdateFileInArchive()
return true;
}
+#endif
+
bool
DetachedSong::Update()
{