mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge pull request #5651 from nulano/5637
Hide FriBiDi shim symbols to avoid conflict with real FriBiDi library
This commit is contained in:
commit
874118e343
4
src/thirdparty/fribidi-shim/fribidi.c
vendored
4
src/thirdparty/fribidi-shim/fribidi.c
vendored
|
@ -12,7 +12,7 @@
|
|||
|
||||
|
||||
/* FriBiDi>=1.0.0 adds bracket_types param, ignore and call legacy function */
|
||||
FriBidiLevel fribidi_get_par_embedding_levels_ex_compat(
|
||||
static FriBidiLevel fribidi_get_par_embedding_levels_ex_compat(
|
||||
const FriBidiCharType *bidi_types,
|
||||
const FriBidiBracketType *bracket_types,
|
||||
const FriBidiStrIndex len,
|
||||
|
@ -24,7 +24,7 @@ FriBidiLevel fribidi_get_par_embedding_levels_ex_compat(
|
|||
}
|
||||
|
||||
/* FriBiDi>=1.0.0 gets bracket types here, ignore */
|
||||
void fribidi_get_bracket_types_compat(
|
||||
static void fribidi_get_bracket_types_compat(
|
||||
const FriBidiChar *str,
|
||||
const FriBidiStrIndex len,
|
||||
const FriBidiCharType *types,
|
||||
|
|
4
src/thirdparty/fribidi-shim/fribidi.h
vendored
4
src/thirdparty/fribidi-shim/fribidi.h
vendored
|
@ -63,8 +63,12 @@ typedef uint32_t FriBidiParType;
|
|||
/* functions */
|
||||
|
||||
#ifdef FRIBIDI_SHIM_IMPLEMENTATION
|
||||
#ifdef _MSC_VER
|
||||
#define FRIBIDI_ENTRY
|
||||
#else
|
||||
#define FRIBIDI_ENTRY __attribute__((visibility ("hidden")))
|
||||
#endif
|
||||
#else
|
||||
#define FRIBIDI_ENTRY extern
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user