changeset 33354:a0c9f0202d8e

Attempt to fix compilation against older fribidi versions.
author reimar
date Sun, 08 May 2011 08:55:00 +0000
parents 63dbf59fa312
children 6a6dc18cde26
files sub/subreader.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sub/subreader.c	Sun May 08 08:52:43 2011 +0000
+++ b/sub/subreader.c	Sun May 08 08:55:00 2011 +0000
@@ -1235,7 +1235,11 @@
  */
 int do_fribid_log2vis(int charset, const char *in, FriBidiChar *logical, FriBidiChar *visual, int flip_commas)
 {
+#ifdef FRIBIDI_PAR_LTR
   FriBidiParType base = flip_commas ? FRIBIDI_PAR_ON : FRIBIDI_PAR_LTR;
+#else
+  FriBidiCharType base = flip_commas ? FRIBIDI_TYPE_ON : FRIBIDI_TYPE_L;
+#endif
   int len = strlen(in);
   len = fribidi_charset_to_unicode(charset, in, len, logical);
   if (!fribidi_log2vis(logical, len, &base, visual, NULL, NULL, NULL))