]> granicus.if.org Git - php/commitdiff
Make ext/fribidi compile against latest fribidi CVS
authorJames Moore <jmoore@php.net>
Sat, 28 Sep 2002 15:37:21 +0000 (15:37 +0000)
committerJames Moore <jmoore@php.net>
Sat, 28 Sep 2002 15:37:21 +0000 (15:37 +0000)
ext/fribidi/fribidi.c

index 3e97a1a43e57da6a73f09bcf33331c6ae74e3149..515c397ba97adda13b8d0586c9687b9b20650884 100755 (executable)
 #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}