diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index 077a2c1c44..9f98ca78c2 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -128,7 +128,6 @@ void shader_manager_get_str(struct gfx_shader *shader, #endif #ifdef HAVE_FILEBROWSER - static bool directory_parse(void *data, const char *path) { filebrowser_t *filebrowser = (filebrowser_t*)data; @@ -298,8 +297,7 @@ void filebrowser_update(void *data, uint64_t action_ori, const char *extensions) if (!ret) msg_queue_push(g_extern.msg_queue, "ERROR - Failed to open directory.", 1, 180); } - -#else +#endif struct rgui_file { @@ -369,8 +367,6 @@ void rgui_list_get_last(const rgui_list_t *list, rgui_list_get_at_offset(list, list->size - 1, path, file_type); } -#endif - void menu_rom_history_push(const char *path, const char *core_path, const char *core_name) diff --git a/frontend/menu/menu_common.h b/frontend/menu/menu_common.h index be7cf6e491..575c0b6d28 100644 --- a/frontend/menu/menu_common.h +++ b/frontend/menu/menu_common.h @@ -37,9 +37,8 @@ extern "C" { #ifdef HAVE_FILEBROWSER #include "utils/file_browser.h" -#else -#include "utils/file_list.h" #endif +#include "utils/file_list.h" #if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) #define HAVE_SHADER_MANAGER @@ -201,10 +200,9 @@ typedef struct #ifdef HAVE_FILEBROWSER filebrowser_t *browser; unsigned menu_type; -#else +#endif rgui_list_t *menu_stack; rgui_list_t *selection_buf; -#endif size_t selection_ptr; bool need_refresh; bool msg_force;