[MPlayer-cvslog] r30710 - in trunk: mp_msg.c osdep/getch2.h

diego subversion at mplayerhq.hu
Mon Feb 22 16:34:56 CET 2010


Author: diego
Date: Mon Feb 22 16:34:56 2010
New Revision: 30710

Log:
Properly declare get_term_charset() instead of forward declaring it.

Modified:
   trunk/mp_msg.c
   trunk/osdep/getch2.h

Modified: trunk/mp_msg.c
==============================================================================
--- trunk/mp_msg.c	Mon Feb 22 15:27:32 2010	(r30709)
+++ trunk/mp_msg.c	Mon Feb 22 16:34:56 2010	(r30710)
@@ -22,18 +22,11 @@
 #include <string.h>
 
 #include "config.h"
+#include "osdep/getch2.h"
 
 #ifdef CONFIG_ICONV
 #include <iconv.h>
 #include <errno.h>
-/**
- * \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)

Modified: trunk/osdep/getch2.h
==============================================================================
--- trunk/osdep/getch2.h	Mon Feb 22 15:27:32 2010	(r30709)
+++ trunk/osdep/getch2.h	Mon Feb 22 16:34:56 2010	(r30710)
@@ -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);
 


More information about the MPlayer-cvslog mailing list