summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-07-30 16:39:24 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-07-30 16:39:24 +0300
commit04f3909a724a06ca5a5a3921061f2ba9fb9d8787 (patch)
treeb09b4c45898be2754f156ebba16fa1054f42788d /osdep
parent3a69d65f8d07c54f4c9eb2d9c89ab50e35d0a50d (diff)
parent1fdf02e6fbd896c8fcce03992ecdf36144d85714 (diff)
downloadmpv-04f3909a724a06ca5a5a3921061f2ba9fb9d8787.tar.bz2
mpv-04f3909a724a06ca5a5a3921061f2ba9fb9d8787.tar.xz
Merge svn changes up to r27374
Conflicts: cfg-common-opts.h cfg-mplayer.h command.c configure libmpcodecs/dec_video.c libmpcodecs/vd.c libmpcodecs/vf_vo.c libmpdemux/demuxer.h libmpdemux/stheader.h mp_core.h mplayer.c stream/stream_radio.c
Diffstat (limited to 'osdep')
-rw-r--r--osdep/getch2-os2.c6
-rw-r--r--osdep/getch2-win.c2
-rw-r--r--osdep/getch2.c16
3 files changed, 12 insertions, 12 deletions
diff --git a/osdep/getch2-os2.c b/osdep/getch2-os2.c
index c309a22bce..5d21efbcd0 100644
--- a/osdep/getch2-os2.c
+++ b/osdep/getch2-os2.c
@@ -33,7 +33,7 @@
#include "mp_fifo.h"
#include "getch2.h"
-#if defined( USE_LANGINFO ) && defined( USE_ICONV )
+#if defined(CONFIG_LANGINFO) && defined(CONFIG_ICONV)
#include <locale.h>
#include <langinfo.h>
#endif
@@ -183,12 +183,12 @@ void getch2_disable( void )
getch2_status = 0;
}
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
char *get_term_charset( void )
{
char *charset = NULL;
-#ifdef USE_LANGINFO
+#ifdef CONFIG_LANGINFO
setlocale( LC_CTYPE, "");
charset = nl_langinfo( CODESET );
setlocale( LC_CTYPE, "C");
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c
index 6f9567c3db..49ec9c46b3 100644
--- a/osdep/getch2-win.c
+++ b/osdep/getch2-win.c
@@ -144,7 +144,7 @@ void getch2_disable(){
getch2_status=0;
}
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
static const struct {
unsigned cp;
char* alias;
diff --git a/osdep/getch2.c b/osdep/getch2.c
index cff61d3847..92ac4a844d 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -2,9 +2,9 @@
#include "config.h"
-//#define USE_TERMCAP
+//#define CONFIG_TERMCAP
#if !defined(__OS2__) && !defined(__MORPHOS__)
-#define USE_IOCTL
+#define CONFIG_IOCTL
#endif
#define MAX_KEYS 64
@@ -15,7 +15,7 @@
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
-#ifdef USE_IOCTL
+#ifdef CONFIG_IOCTL
#include <sys/ioctl.h>
#endif
@@ -28,7 +28,7 @@
#endif
#endif
-#if defined(USE_LANGINFO) && defined(USE_ICONV)
+#if defined(CONFIG_LANGINFO) && defined(CONFIG_ICONV)
#include <locale.h>
#include <langinfo.h>
#endif
@@ -57,7 +57,7 @@ typedef struct {
static keycode_st getch2_keys[MAX_KEYS];
static int getch2_key_db=0;
-#ifdef USE_TERMCAP
+#ifdef CONFIG_TERMCAP
#if 0
#include <termcap.h>
@@ -126,7 +126,7 @@ int load_termcap(char *termtype){
#endif
void get_screen_size(void){
-#ifdef USE_IOCTL
+#ifdef CONFIG_IOCTL
struct winsize ws;
if (ioctl(0, TIOCGWINSZ, &ws) < 0 || !ws.ws_row || !ws.ws_col) return;
/* printf("Using IOCTL\n"); */
@@ -271,11 +271,11 @@ void getch2_disable(void){
getch2_status=0;
}
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
char* get_term_charset(void)
{
char* charset = NULL;
-#ifdef USE_LANGINFO
+#ifdef CONFIG_LANGINFO
setlocale(LC_CTYPE, "");
charset = nl_langinfo(CODESET);
setlocale(LC_CTYPE, "C");