From 963a66f670737ba2ccb5f18cf0bbe4d2d69f8fa0 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sat, 16 Aug 2025 03:06:27 +0200 Subject: [PATCH] tagcache: fix building with LOGF_ENABLE when LOGF_CLAUSES not defined Change-Id: I1cfcd45069b54115cf368f52c74826d3b3eacd6e --- apps/tagcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index b1e4d13394..793bde5d75 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -212,10 +212,10 @@ static const char * const tags_str[] = { "artist", "album", "genre", "title", "discnumber", "tracknumber", "canonicalartist", "bitrate", "length", "playcount", "rating", "playtime", "lastplayed", "commitid", "mtime", "lastelapsed", "lastoffset" -#if !defined(LOGF_ENABLE) +#if !defined(LOGF_ENABLE) || !defined(LOGF_CLAUSES) }; #define logf_clauses(...) do { } while(0) -#elif defined(LOGF_CLAUSES) /* strings for logf debugging */ +#else /* strings for logf debugging */ "tag_virt_basename", "tag_virt_length_min", "tag_virt_length_sec", "tag_virt_playtime_min", "tag_virt_playtime_sec", "tag_virt_entryage", "tag_virt_autoscore" @@ -240,7 +240,7 @@ static const char * const tag_type_str[] = { [clause_logical_or] = "clause_logical_or" }; #define logf_clauses logf -#endif /* ndef LOGF_ENABLE */ +#endif /* !defined(LOGF_ENABLE) || !defined(LOGF_CLAUSES) */ #if defined(PLUGIN) char *itoa_buf(char *buf, size_t bufsz, long int i)