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/playlist/PlaylistSong.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/playlist/PlaylistSong.cxx') diff --git a/src/playlist/PlaylistSong.cxx b/src/playlist/PlaylistSong.cxx index 69f8762ab..b382994a6 100644 --- a/src/playlist/PlaylistSong.cxx +++ b/src/playlist/PlaylistSong.cxx @@ -79,6 +79,7 @@ playlist_check_load_song(DetachedSong &song) apply_song_metadata(song, tmp); return true; } else { +#ifdef ENABLE_DATABASE DetachedSong *tmp = DatabaseDetachSong(uri, IgnoreError()); if (tmp == nullptr) return false; @@ -86,6 +87,9 @@ playlist_check_load_song(DetachedSong &song) apply_song_metadata(song, *tmp); delete tmp; return true; +#else + return false; +#endif } } -- cgit v1.2.3