diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-22 15:34:56 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-22 15:34:56 +0000 |
commit | 7262f6c9b4f3cd1bd8b98bcc40b74a05aa989ebc (patch) | |
tree | 6dbb212a65f9bc038c1df575922167e2ab0b71be /osdep | |
parent | cc8a878a9cb9688b2eb53b7ee3c6d82bc1555aaf (diff) | |
download | mpv-7262f6c9b4f3cd1bd8b98bcc40b74a05aa989ebc.tar.bz2 mpv-7262f6c9b4f3cd1bd8b98bcc40b74a05aa989ebc.tar.xz |
Properly declare get_term_charset() instead of forward declaring it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30710 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/getch2.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/osdep/getch2.h b/osdep/getch2.h index f6f416b2a7..35e9801970 100644 --- a/osdep/getch2.h +++ b/osdep/getch2.h @@ -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 @@ void getch2_disable(void); /* 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); |