From 19d1cacb1a63c306d842f81127d382512c49a062 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 31 Oct 2008 21:25:04 +0000 Subject: cleanup storage defines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657 --- apps/mpeg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/mpeg.c') diff --git a/apps/mpeg.c b/apps/mpeg.c index 713915d5a6..3c37a6b22f 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c @@ -1603,7 +1603,8 @@ static void mpeg_thread(void) /* Don't read more than until the end of the buffer */ amount_to_read = MIN(audiobuflen - audiobuf_write, amount_to_read); -#ifdef HAVE_MMC /* MMC is slow, so don't read too large chunks */ +#if (CONFIG_STORAGE & STORAGE_MMC) + /* MMC is slow, so don't read too large chunks */ amount_to_read = MIN(0x40000, amount_to_read); #elif MEM == 8 amount_to_read = MIN(0x100000, amount_to_read); @@ -1912,7 +1913,8 @@ static void mpeg_thread(void) amount_to_save = MIN(amount_to_save, audiobuflen - audiobuf_read); -#ifdef HAVE_MMC /* MMC is slow, so don't save too large chunks at once */ +#if (CONFIG_STORAGE & STORAGE_MMC) + /* MMC is slow, so don't save too large chunks at once */ amount_to_save = MIN(0x40000, amount_to_save); #elif MEM == 8 amount_to_save = MIN(0x100000, amount_to_save); -- cgit v1.2.3