# HG changeset patch # User diego # Date 1266852896 0 # Node ID 46e7233f1faae8e3d2f1162fffd760c7540c8157 # Parent 6ca16928b1cc1463de4f1b25ba4b7c537664c173 Properly declare get_term_charset() instead of forward declaring it. diff -r 6ca16928b1cc -r 46e7233f1faa mp_msg.c --- a/mp_msg.c Mon Feb 22 14:27:32 2010 +0000 +++ b/mp_msg.c Mon Feb 22 15:34:56 2010 +0000 @@ -22,18 +22,11 @@ #include #include "config.h" +#include "osdep/getch2.h" #ifdef CONFIG_ICONV #include #include -/** - * \brief gets the name of the system's terminal character set - * \return a malloced string indicating the system charset - * - * Be warned that this function on many systems is in no way thread-safe - * since it modifies global data - */ -char* get_term_charset(void); #endif #if defined(FOR_MENCODER) diff -r 6ca16928b1cc -r 46e7233f1faa osdep/getch2.h --- a/osdep/getch2.h Mon Feb 22 14:27:32 2010 +0000 +++ b/osdep/getch2.h Mon Feb 22 15:34:56 2010 +0000 @@ -24,6 +24,8 @@ #ifndef MPLAYER_GETCH2_H #define MPLAYER_GETCH2_H +#include "config.h" + /* Screen size. Initialized by load_termcap() and get_screen_size() */ extern int screen_width; extern int screen_height; @@ -44,6 +46,17 @@ /* Read a character or a special key code (see keycodes.h) */ void getch2(void); +#ifdef CONFIG_ICONV +/** + * \brief gets the name of the system's terminal character set + * \return a malloced string indicating the system charset + * + * Be warned that this function on many systems is in no way thread-safe + * since it modifies global data + */ +char *get_term_charset(void); +#endif + /* slave cmd function for Windows and OS/2 */ int mp_input_slave_cmd_func(int fd,char* dest,int size);