CXX_BUILD fixes

This commit is contained in:
twinaphex 2017-10-02 07:07:18 +02:00
parent 9c639ec529
commit 8d850dc0bd
8 changed files with 12 additions and 10 deletions

View File

@ -210,7 +210,7 @@ static int action_left_mainmenu(unsigned type, const char *label,
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf,
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf,
selection) : NULL;
list_info.type = MENU_LIST_HORIZONTAL;

View File

@ -191,7 +191,8 @@ static int action_right_goto_tab(void)
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ? file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
menu_file_list_cbs_t *cbs = selection_buf ? (menu_file_list_cbs_t*)
file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
list_info.type = MENU_LIST_HORIZONTAL;
list_info.action = MENU_ACTION_RIGHT;

View File

@ -42,7 +42,7 @@ static int action_select_default(const char *path, const char *label, unsigned t
menu_entry_init(&entry);
menu_entry_get(&entry, 0, idx, NULL, false);
cbs = selection_buf ? file_list_get_actiondata_at_offset(selection_buf, idx) : NULL;
cbs = selection_buf ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, idx) : NULL;
if (!cbs)
{

View File

@ -134,6 +134,7 @@ int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
{
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
menu_file_list_cbs_t *cbs = selection_buf ?
(menu_file_list_cbs_t*)
file_list_get_actiondata_at_offset(selection_buf, selection)
: NULL;

View File

@ -495,7 +495,7 @@ rarch_setting_t *menu_entries_get_setting(uint32_t i)
{
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
if (!cbs)
return NULL;

View File

@ -567,7 +567,7 @@ void menu_input_post_iterate(int *ret, unsigned action)
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
menu_entry_init(&entry);
menu_entry_get(&entry, 0, selection, NULL, false);

View File

@ -917,7 +917,7 @@ int menu_setting_set(unsigned type, const char *label,
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
if (!cbs)
return 0;

View File

@ -313,7 +313,7 @@ void menu_entry_get(menu_entry_t *entry, size_t stack_idx,
menu_entries_get_at_offset(list, i, &path, &entry_label, &entry->type,
&entry->entry_idx, NULL);
cbs = list ? file_list_get_actiondata_at_offset(list, i) : NULL;
cbs = list ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(list, i) : NULL;
if (cbs)
{
@ -418,7 +418,7 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
file_list_t *selection_buf =
menu_entries_get_selection_buf_ptr(0);
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
switch (action)
{
@ -482,7 +482,7 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
break;
}
cbs = selection_buf ? file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
cbs = selection_buf ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
if (menu_entries_ctl(MENU_ENTRIES_CTL_NEEDS_REFRESH, NULL))
{