mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
plugins: lastfm_scrobbler: fix build error with LOGF
Change-Id: Iefb4b7e4fefb366987627bfd32c27b3252ca34c8
This commit is contained in:
parent
e62ac0d2c6
commit
abaac894f9
1 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue