projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b68b2
)
Fix compiling for Android.
author
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sat, 25 May 2013 07:12:23 +0000
(17:12 +1000)
committer
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sat, 25 May 2013 07:12:27 +0000
(17:12 +1000)
Patch from Janne Hyvärinen <cse@sci.fi>.
src/flac/utils.c
patch
|
blob
|
history
diff --git
a/src/flac/utils.c
b/src/flac/utils.c
index
e908706
..
6f6382e
100644
(file)
--- 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;
-#if
def
_WIN32
+#if
defined
_WIN32
width = win_get_console_width();
#elif defined __EMX__
-
int s[2];
-
_scrsize (s);
-
width = s[0];
-#el
se
+ int s[2];
+ _scrsize (s);
+ width = s[0];
+#el
if !defined __ANDROID__
struct winsize w;
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col;
#endif