From 875023468a65f2aac970d0849678cbc2c3ea67c4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Sep 2015 14:59:20 +0200 Subject: [PATCH] Some more MISSING_DECLS buildfixes --- cores/image_core.c | 1 + input/input_overlay.c | 8 +++++--- menu/menu_setting.c | 21 +++++++++++---------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/cores/image_core.c b/cores/image_core.c index 6c19c26740..7fac6ccaa9 100644 --- a/cores/image_core.c +++ b/cores/image_core.c @@ -19,6 +19,7 @@ #include "stb_image.h" #ifdef RARCH_INTERNAL +#include "internal_cores.h" #include "../libretro.h" #define IMAGE_CORE_PREFIX(s) libretro_imageviewer_##s #else diff --git a/input/input_overlay.c b/input/input_overlay.c index 822604a596..9522a6c464 100644 --- a/input/input_overlay.c +++ b/input/input_overlay.c @@ -28,6 +28,8 @@ #include #include +#include "input_overlay.h" + #include "../configuration.h" #include "input_common.h" @@ -1231,7 +1233,7 @@ static void input_overlay_update_desc_geom(input_overlay_t *ol, * update the range modifiers for pressed/unpressed regions * and alpha mods. **/ -void input_overlay_post_poll(float opacity) +static void input_overlay_post_poll(float opacity) { size_t i; input_overlay_t *ol = overlay_ptr; @@ -1277,7 +1279,7 @@ void input_overlay_post_poll(float opacity) * Call when there is nothing to poll. Allows overlay to * clear certain state. **/ -void input_overlay_poll_clear(float opacity) +static void input_overlay_poll_clear(float opacity) { size_t i; input_overlay_t *ol = overlay_ptr; @@ -1335,7 +1337,7 @@ void input_overlay_next(float opacity) * * Returns: true (1) if overlay is fullscreen, otherwise false (0). **/ -bool input_overlay_full_screen(void) +static bool input_overlay_full_screen(void) { input_overlay_t *ol = overlay_ptr; if (!ol) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 53e2e9be9b..35b52076f5 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -14,12 +14,22 @@ * If not, see . */ +#if defined(__CELLOS_LV2__) +#include + +#if (CELL_SDK_VERSION > 0x340000) +#include +#endif + +#endif + #include #include +#include "menu_setting.h" + #include "menu.h" #include "menu_input.h" -#include "menu_setting.h" #include "menu_hash.h" #include "../driver.h" @@ -32,15 +42,6 @@ #include "../file_ext.h" #include "../performance.h" -#if defined(__CELLOS_LV2__) -#include - -#if (CELL_SDK_VERSION > 0x340000) -#include -#endif - -#endif - static void menu_settings_info_list_free(rarch_setting_info_t *list_info) { if (list_info)