mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Accept FS#7264 'Build with -Os switch for coldfire targets'.
Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers functions to a plugin to make plugins link correctly when gcc calls mem* functions directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f50bd1151a
commit
c7f9ca4067
21 changed files with 105 additions and 29 deletions
|
@ -65,10 +65,12 @@ static bool volume(void)
|
|||
|
||||
static bool shuffle(void)
|
||||
{
|
||||
struct opt_items names[] = {
|
||||
{ "No", -1 },
|
||||
{ "Yes", -1 }
|
||||
};
|
||||
struct opt_items names[2];
|
||||
names[0].string = "No";
|
||||
names[0].voice_id = -1;
|
||||
names[1].string = "Yes";
|
||||
names[1].voice_id = -1;
|
||||
|
||||
return api->set_option("Shuffle", &api->global_settings->playlist_shuffle,
|
||||
BOOL, names, 2,NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue