diff options
author | Max Kellermann <max@duempel.org> | 2014-03-01 08:16:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-01 08:16:13 +0100 |
commit | 7ccc609da2219d414dbed6c55cfdb9d52b359823 (patch) | |
tree | bd854e61f03df335cba3766f647441290a91b1f2 /src/db/update/ExcludeList.hxx | |
parent | ebc01680721b3ac8ff59f65166573c1571f14f86 (diff) | |
download | mpd-7ccc609da2219d414dbed6c55cfdb9d52b359823.tar.gz mpd-7ccc609da2219d414dbed6c55cfdb9d52b359823.tar.xz mpd-7ccc609da2219d414dbed6c55cfdb9d52b359823.zip |
db/update/ExcludeList: make no-op if GLib is disabled
Quick hack to allow using the database without GLib (for Android).
Diffstat (limited to 'src/db/update/ExcludeList.hxx')
-rw-r--r-- | src/db/update/ExcludeList.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/update/ExcludeList.hxx b/src/db/update/ExcludeList.hxx index 8870664b0..ef6c4d53e 100644 --- a/src/db/update/ExcludeList.hxx +++ b/src/db/update/ExcludeList.hxx @@ -25,15 +25,19 @@ #ifndef MPD_EXCLUDE_H #define MPD_EXCLUDE_H +#include "check.h" #include "Compiler.h" #include <forward_list> +#ifdef HAVE_GLIB #include <glib.h> +#endif class Path; class ExcludeList { +#ifdef HAVE_GLIB class Pattern { GPatternSpec *pattern; @@ -57,11 +61,19 @@ class ExcludeList { }; std::forward_list<Pattern> patterns; +#else + // TODO: implement +#endif public: gcc_pure bool IsEmpty() const { +#ifdef HAVE_GLIB return patterns.empty(); +#else + // TODO: implement + return true; +#endif } /** |