From abaac894f96f151b6c756b70ffd6c64602d74028 Mon Sep 17 00:00:00 2001 From: mojyack Date: Thu, 28 May 2026 17:15:20 +0900 Subject: [PATCH] plugins: lastfm_scrobbler: fix build error with LOGF Change-Id: Iefb4b7e4fefb366987627bfd32c27b3252ca34c8 --- apps/plugins/lastfm_scrobbler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/plugins/lastfm_scrobbler.c b/apps/plugins/lastfm_scrobbler.c index 919451bdc0..39af14e559 100644 --- a/apps/plugins/lastfm_scrobbler.c +++ b/apps/plugins/lastfm_scrobbler.c @@ -760,7 +760,7 @@ static int pbl_copyloop(int fd_copy, const char *src_filename, struct scrobbler_entry entry; long next_tick = *rb->current_tick; int count = 0; -#ifdef LOGF_ENABLE +#if defined(ROCKBOX_HAS_LOGF) int line_num = 0; #endif int lines_copied = 0; @@ -775,7 +775,7 @@ static int pbl_copyloop(int fd_copy, const char *src_filename, while(rb->read_line(fd_src, buf, buf_sz) > 0) { char skipch = ' '; -#ifdef LOGF_ENABLE +#if defined(ROCKBOX_HAS_LOGF) line_num++; #endif do_timed_yield(); @@ -915,7 +915,7 @@ static int sbl_export(void) struct scrobbler_entry entry; int rd = 0; -#ifdef LOGF_ENABLE +#if defined(ROCKBOX_HAS_LOGF) int line_num = 0; #endif @@ -927,7 +927,7 @@ static int sbl_export(void) { if ((rd = rb->read_line(fd_copy, buf, sizeof(buf))) <= 0) break; -#ifdef LOGF_ENABLE +#if defined(ROCKBOX_HAS_LOGF) line_num++; #endif if (buf[0] != ' ') /* skip culled entries comments and empty lines */