changeset 33381:caaafbf05ecb

Fix condition for using FriBidiParType, its values are usually enums, not defines.
author reimar
date Mon, 16 May 2011 19:20:58 +0000
parents 51fa540fb5bf
children 5e58893a6478
files sub/subreader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sub/subreader.c	Mon May 16 09:23:33 2011 +0000
+++ b/sub/subreader.c	Mon May 16 19:20:58 2011 +0000
@@ -1235,7 +1235,7 @@
  */
 int do_fribid_log2vis(int charset, const char *in, FriBidiChar *logical, FriBidiChar *visual, int flip_commas)
 {
-#ifdef FRIBIDI_PAR_LTR
+#if defined(FRIBIDI_PAR_LTR) || FRIBIDI_INTERFACE_VERSION >= 3
   FriBidiParType base = flip_commas ? FRIBIDI_PAR_ON : FRIBIDI_PAR_LTR;
 #else
   FriBidiCharType base = flip_commas ? FRIBIDI_TYPE_ON : FRIBIDI_TYPE_L;