From 5586b0293122da39d1d0cb813c7e6eec5d0ffd94 Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Thu, 25 Jul 2013 12:23:40 -0300 Subject: 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. --- core/mplayer.c | 2 -- osdep/getch2-win.c | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/mplayer.c b/core/mplayer.c index 4d1dc64de5..f1f1e81195 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -4586,9 +4586,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv) SetErrorMode(0x8003); #endif -#ifdef HAVE_TERMCAP load_termcap(NULL); // load key-codes -#endif mp_time_init(); } diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c index 0750f95c78..558876ff62 100644 --- a/osdep/getch2-win.c +++ b/osdep/getch2-win.c @@ -64,6 +64,11 @@ void get_screen_size(void) } } +int load_termcap(char *termtype) +{ + return 0; +} + static HANDLE in; static int getch2_status = 0; -- cgit v1.2.3