diff options
-rw-r--r-- | apps/plugin.h | 1 | ||||
-rw-r--r-- | apps/plugins/main_menu_config.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 0e0580501d..764af4a6b7 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -45,6 +45,7 @@ | |||
45 | #undef strcmp | 45 | #undef strcmp |
46 | #undef strncmp | 46 | #undef strncmp |
47 | #undef strchr | 47 | #undef strchr |
48 | #undef strtok_r | ||
48 | 49 | ||
49 | char* strncpy(char *, const char *, size_t); | 50 | char* strncpy(char *, const char *, size_t); |
50 | void* plugin_get_buffer(size_t *buffer_size); | 51 | void* plugin_get_buffer(size_t *buffer_size); |
diff --git a/apps/plugins/main_menu_config.c b/apps/plugins/main_menu_config.c index da9fde8384..554265a0bd 100644 --- a/apps/plugins/main_menu_config.c +++ b/apps/plugins/main_menu_config.c | |||
@@ -62,7 +62,7 @@ void load_from_cfg(void) | |||
62 | 62 | ||
63 | rb->root_menu_write_to_cfg(NULL, config_str, sizeof(config_str)); | 63 | rb->root_menu_write_to_cfg(NULL, config_str, sizeof(config_str)); |
64 | 64 | ||
65 | token = strtok_r(config_str, ", ", &save); | 65 | token = rb->strtok_r(config_str, ", ", &save); |
66 | 66 | ||
67 | while (token) | 67 | while (token) |
68 | { | 68 | { |
@@ -78,7 +78,7 @@ void load_from_cfg(void) | |||
78 | menu_items[done].enabled = true; | 78 | menu_items[done].enabled = true; |
79 | done++; | 79 | done++; |
80 | } | 80 | } |
81 | token = strtok_r(NULL, ", ", &save); | 81 | token = rb->strtok_r(NULL, ", ", &save); |
82 | } | 82 | } |
83 | 83 | ||
84 | if (done < menu_item_count) | 84 | if (done < menu_item_count) |