getch2, mplayer: Always call load_termcap

getch2 now deals with the cases where we don't have termcap. Add a dummy
load_termcap to getch2-win so we don't get linking errors on mingw.
This commit is contained in:
Diogo Franco (Kovensky) 2013-07-25 12:23:40 -03:00
parent 19b1279bb3
commit 5586b02931
2 changed files with 5 additions and 2 deletions

View File

@ -4586,9 +4586,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
SetErrorMode(0x8003); SetErrorMode(0x8003);
#endif #endif
#ifdef HAVE_TERMCAP
load_termcap(NULL); // load key-codes load_termcap(NULL); // load key-codes
#endif
mp_time_init(); mp_time_init();
} }

View File

@ -64,6 +64,11 @@ void get_screen_size(void)
} }
} }
int load_termcap(char *termtype)
{
return 0;
}
static HANDLE in; static HANDLE in;
static int getch2_status = 0; static int getch2_status = 0;