C89_BUILD fix

This commit is contained in:
twinaphex 2016-10-30 03:30:32 +01:00
parent d7c4b4f009
commit 696abbed83
2 changed files with 4 additions and 2 deletions

View File

@ -2300,10 +2300,12 @@ bool command_event(enum event_command cmd, void *data)
case CMD_EVENT_PAUSE_CHECKS:
if (runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
{
bool is_paused = false;
RARCH_LOG("%s\n", msg_hash_to_str(MSG_PAUSED));
command_event(CMD_EVENT_AUDIO_STOP, NULL);
bool is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL);
is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL);
runloop_msg_queue_push(msg_hash_to_str(MSG_PAUSED), 1, is_paused ? 1: 30, true);
if (settings->video.black_frame_insertion || is_paused)

View File

@ -168,6 +168,7 @@ static bool input_keyboard_line_event(
bool input_keyboard_line_append(const char *word)
{
unsigned i = 0;
unsigned len = strlen(word);
char *newbuf = (char*)
@ -179,7 +180,6 @@ bool input_keyboard_line_append(const char *word)
newbuf + g_keyboard_line->ptr,
g_keyboard_line->size - g_keyboard_line->ptr + len);
unsigned i = 0;
for (i = 0; i < len; i++)
{
newbuf[g_keyboard_line->ptr] = word[i];