summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-05-25 17:12:23 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-05-25 17:12:27 +1000
commitd7a56a28dd7059f1c33560072360295fb4f49964 (patch)
tree063b8a0e30a3cf23c858472f64c5ade7f784bead
parentd4b68b2ba5ba36c5909ad6be6fcea81ce03f204b (diff)
downloadflac-d7a56a28dd7059f1c33560072360295fb4f49964.tar.gz
Fix compiling for Android.
Patch from Janne Hyvärinen <cse@sci.fi>.
-rw-r--r--src/flac/utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/flac/utils.c b/src/flac/utils.c
index e908706b..6f6382ee 100644
--- a/src/flac/utils.c
+++ b/src/flac/utils.c
@@ -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];
-#else
+ 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;
#endif