[flac-dev] FLAC currently won't compile for Android [bisected]
Janne Hyvärinen
cse at sci.fi
Thu May 23 03:44:17 PDT 2013
On 22.5.2013 17:03, Felix Homann wrote:
> Sorry that it took so long to reply. As mentioned in an earlier mail
> my first bisect session wasn't accurate. I've done a new one:
>
>
Here's my patch suggestion but I'm no Android guy.
-------------- next part --------------
diff --git a/src/flac/utils.c b/src/flac/utils.c
index e908706..6f6382e 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
More information about the flac-dev
mailing list