Build fixes when HAVE_OVERLAY is not defined

This commit is contained in:
twinaphex 2015-07-10 18:37:25 +02:00
parent 8fc5c85589
commit b6609d576b
2 changed files with 6 additions and 0 deletions

View File

@ -216,7 +216,9 @@ retro_input_t input_driver_keys_pressed(void)
retro_input_t ret = 0;
driver_t *driver = driver_get_ptr();
const input_driver_t *input = input_get_ptr(driver);
#ifdef HAVE_OVERLAY
input_overlay_state_t *ol_state = input_overlay_get_state_ptr();
#endif
for (key = 0; key < RARCH_BIND_LIST_END; key++)
{

View File

@ -161,7 +161,9 @@ static int16_t input_state(unsigned port, unsigned device,
settings_t *settings = config_get_ptr();
driver_t *driver = driver_get_ptr();
global_t *global = global_get_ptr();
#ifdef HAVE_OVERLAY
input_overlay_state_t *ol_state = input_overlay_get_state_ptr();
#endif
for (i = 0; i < MAX_USERS; i++)
libretro_input_binds[i] = settings->input.binds[i];
@ -381,7 +383,9 @@ static void input_poll(void)
{
driver_t *driver = driver_get_ptr();
settings_t *settings = config_get_ptr();
#ifdef HAVE_OVERLAY
input_overlay_t *overlay = input_overlay_get_ptr();
#endif
input_driver_poll();