summaryrefslogtreecommitdiffstats
path: root/osdep/getch2-os2.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/getch2-os2.c')
-rw-r--r--osdep/getch2-os2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep/getch2-os2.c b/osdep/getch2-os2.c
index 5d21efbcd0..3b94b4d736 100644
--- a/osdep/getch2-os2.c
+++ b/osdep/getch2-os2.c
@@ -33,7 +33,7 @@
#include "mp_fifo.h"
#include "getch2.h"
-#if defined(CONFIG_LANGINFO) && defined(CONFIG_ICONV)
+#if defined(HAVE_LANGINFO) && defined(HAVE_ICONV)
#include <locale.h>
#include <langinfo.h>
#endif
@@ -183,12 +183,12 @@ void getch2_disable( void )
getch2_status = 0;
}
-#ifdef CONFIG_ICONV
+#ifdef HAVE_ICONV
char *get_term_charset( void )
{
char *charset = NULL;
-#ifdef CONFIG_LANGINFO
+#ifdef HAVE_LANGINFO
setlocale( LC_CTYPE, "");
charset = nl_langinfo( CODESET );
setlocale( LC_CTYPE, "C");