Commit d7a56a28 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Fix compiling for Android.

Patch from Janne Hyvärinen <>.
parent d4b68b2b
......@@ -171,13 +171,13 @@ static int console_chars_left;
int get_console_width(void)
int width = 80;
#ifdef _WIN32
#if defined _WIN32
width = win_get_console_width();
#elif defined __EMX__
int s[2];
_scrsize (s);
width = s[0];
int s[2];
_scrsize (s);
width = s[0];
#elif !defined __ANDROID__
struct winsize w;
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment