mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 23:07:02 +00:00
fix fribidi 0.10.5 and greater support (patch by Amir Shalem < amir at boom.org.il >)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15800 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
26e338cc1d
commit
70b33fe0ad
6
configure
vendored
6
configure
vendored
@ -5121,9 +5121,13 @@ if test "$_fribidi" = yes ; then
|
||||
cat > $TMPC << EOF
|
||||
#include <stdio.h>
|
||||
#include <fribidi/fribidi.h>
|
||||
/* workaround for fribidi 0.10.4 and below */
|
||||
#if defined(FRIBIDI_CHARSET_UTF8) && !defined(FRIBIDI_CHAR_SET_UTF8)
|
||||
#define FRIBIDI_CHAR_SET_UTF8 FRIBIDI_CHARSET_UTF8
|
||||
#endif
|
||||
int main()
|
||||
{
|
||||
if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHARSET_UTF8) {
|
||||
if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) {
|
||||
printf("Fribidi headers are not consistents with the library!\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user