diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-07-30 16:39:24 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-07-30 16:39:24 +0300 |
commit | 04f3909a724a06ca5a5a3921061f2ba9fb9d8787 (patch) | |
tree | b09b4c45898be2754f156ebba16fa1054f42788d /osdep/getch2.c | |
parent | 3a69d65f8d07c54f4c9eb2d9c89ab50e35d0a50d (diff) | |
parent | 1fdf02e6fbd896c8fcce03992ecdf36144d85714 (diff) | |
download | mpv-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/getch2.c')
-rw-r--r-- | osdep/getch2.c | 16 |
1 files changed, 8 insertions, 8 deletions
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"); |