summaryrefslogtreecommitdiff
path: root/ext/fribidi
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fribidi')
-rwxr-xr-xext/fribidi/fribidi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/fribidi/fribidi.c b/ext/fribidi/fribidi.c
index 3e97a1a43e..515c397ba9 100755
--- a/ext/fribidi/fribidi.c
+++ b/ext/fribidi/fribidi.c
@@ -31,6 +31,19 @@
#include "ext/standard/info.h"
#include <fribidi/fribidi.h>
+/* The fribidi guys dont believe in BC */
+#ifndef FRIBIDI_CHARSET_NOT_FOUND
+
+#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8
+#define FRIBIDI_CHARSET_ISO8859_6 FRIBIDI_CHAR_SET_ISO8859_6
+#define FRIBIDI_CHARSET_ISO8859_8 FRIBIDI_CHAR_SET_ISO8859_8
+#define FRIBIDI_CHARSET_CP1255 FRIBIDI_CHAR_SET_CP1255
+#define FRIBIDI_CHARSET_CP1256 FRIBIDI_CHAR_SET_CP1256
+#define FRIBIDI_CHARSET_ISIRI_3342 FRIBIDI_CHAR_SET_ISIRI_3342
+#define FRIBIDI_CHARSET_CAP_RTL FRIBIDI_CHAR_SET_CAP_RTL
+
+#endif
+
function_entry fribidi_functions[] = {
PHP_FE(fribidi_log2vis, NULL)
{NULL, NULL, NULL}