Hi<br><br>The most recent patch to modules/misc/freetype.c in the trunk introduces a C++ism to a .c file, namely that variables are declared mid-function. This isn't handled on BeOS. This patch shouldn't change any functionality, break any other platforms, or cause any warnings; but does allow BeOS to work again with fribidi.
<br><br>Cian<br><br>Index: modules/misc/freetype.c<br>===================================================================<br>--- modules/misc/freetype.c (revision 13705)<br>+++ modules/misc/freetype.c (working copy)
<br>@@ -455,6 +455,10 @@<br> char *psz_string;<br> vlc_iconv_t iconv_handle = (vlc_iconv_t)(-1);<br> int i_font_color, i_font_alpha, i_font_size, i_red, i_green, i_blue;<br>+#if defined(HAVE_FRIBIDI)<br>+ int pos = 0;
<br>+ int start_pos = pos;<br>+#endif<br> <br> FT_BBox line;<br> FT_BBox glyph_size;<br>@@ -527,9 +531,8 @@<br> {<br> uint32_t *p_fribidi_string;<br> p_fribidi_string = malloc( (i_string_length + 1) * sizeof(uint32_t) );
<br>-<br>+ <br> /* Do bidi conversion line-by-line */<br>- int pos = 0;<br> while(pos < i_string_length) <br> {<br> while(pos < i_string_length) {<br>@@ -539,7 +542,6 @@
<br> p_fribidi_string[pos] = i_char;<br> ++pos;<br> }<br>- int start_pos = pos;<br> while(pos < i_string_length) {<br> i_char = psz_unicode[pos];
<br> if (i_char == '\r' || i_char == '\n')<br><br><br>-- <br>-------------------------<br>"We're busy running out of time"<br>