mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
volume_ismounted is gated by HAVE_DIRCACHE rather than HAVE_MULTIVOLUME
Should fix the various sim builds. Change-Id: I1dc5e8228698afb32c84ada2aa916e52e19f49d7
This commit is contained in:
parent
45bd14b392
commit
51fe1b6705
2 changed files with 3 additions and 1 deletions
|
@ -310,7 +310,7 @@ static int info_speak_item(int selected_item, void * data)
|
||||||
if (info->new_data)
|
if (info->new_data)
|
||||||
{
|
{
|
||||||
volume_size(IF_MV(0,) &info->size, &info->free);
|
volume_size(IF_MV(0,) &info->size, &info->free);
|
||||||
#ifdef HAVE_MULTIVOLUME
|
#ifdef HAVE_DIRCACHE
|
||||||
if (volume_ismounted(1))
|
if (volume_ismounted(1))
|
||||||
volume_size(1, &info->size2, &info->free2);
|
volume_size(1, &info->size2, &info->free2);
|
||||||
else
|
else
|
||||||
|
|
|
@ -100,7 +100,9 @@
|
||||||
void volume_recalc_free(IF_MV_NONVOID(int volume));
|
void volume_recalc_free(IF_MV_NONVOID(int volume));
|
||||||
unsigned int volume_get_cluster_size(IF_MV_NONVOID(int volume));
|
unsigned int volume_get_cluster_size(IF_MV_NONVOID(int volume));
|
||||||
void volume_size(IF_MV(int volume,) unsigned long *size, unsigned long *free);
|
void volume_size(IF_MV(int volume,) unsigned long *size, unsigned long *free);
|
||||||
|
#ifdef HAVE_DIRCACHE
|
||||||
bool volume_ismounted(IF_MV_NONVOID(int volume));
|
bool volume_ismounted(IF_MV_NONVOID(int volume));
|
||||||
|
#endif
|
||||||
#ifdef HAVE_HOTSWAP
|
#ifdef HAVE_HOTSWAP
|
||||||
bool volume_removable(int volume);
|
bool volume_removable(int volume);
|
||||||
bool volume_present(int volume);
|
bool volume_present(int volume);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue