diff options
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/getch2-os2.c | 6 | ||||
-rw-r--r-- | osdep/getch2-win.c | 2 | ||||
-rw-r--r-- | osdep/getch2.c | 16 |
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"); |