From 4465e2c46bbed438377dc4a99df333bd5c058d5e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 30 Jan 2014 20:29:48 +0100 Subject: db: add compile-time option to disable database --- src/SongUpdate.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/SongUpdate.cxx') 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 #include +#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() { -- cgit v1.2.3