mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
fix red, strtok_r being annoying on sim builds
Change-Id: Ifb884a53d801db9534dd0c5ab5921800e971963e
This commit is contained in:
parent
6dbfd44b6e
commit
4b1221d556
2 changed files with 3 additions and 2 deletions
|
|
@ -45,6 +45,7 @@
|
||||||
#undef strcmp
|
#undef strcmp
|
||||||
#undef strncmp
|
#undef strncmp
|
||||||
#undef strchr
|
#undef strchr
|
||||||
|
#undef strtok_r
|
||||||
|
|
||||||
char* strncpy(char *, const char *, size_t);
|
char* strncpy(char *, const char *, size_t);
|
||||||
void* plugin_get_buffer(size_t *buffer_size);
|
void* plugin_get_buffer(size_t *buffer_size);
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ void load_from_cfg(void)
|
||||||
|
|
||||||
rb->root_menu_write_to_cfg(NULL, config_str, sizeof(config_str));
|
rb->root_menu_write_to_cfg(NULL, config_str, sizeof(config_str));
|
||||||
|
|
||||||
token = strtok_r(config_str, ", ", &save);
|
token = rb->strtok_r(config_str, ", ", &save);
|
||||||
|
|
||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
|
|
@ -78,7 +78,7 @@ void load_from_cfg(void)
|
||||||
menu_items[done].enabled = true;
|
menu_items[done].enabled = true;
|
||||||
done++;
|
done++;
|
||||||
}
|
}
|
||||||
token = strtok_r(NULL, ", ", &save);
|
token = rb->strtok_r(NULL, ", ", &save);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (done < menu_item_count)
|
if (done < menu_item_count)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue