mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
hide FriBiDi shim symbols to avoid conflict with real FriBiDi library
This commit is contained in:
parent
64edb9cd6d
commit
cce1244562
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 */
|
/* 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 FriBidiCharType *bidi_types,
|
||||||
const FriBidiBracketType *bracket_types,
|
const FriBidiBracketType *bracket_types,
|
||||||
const FriBidiStrIndex len,
|
const FriBidiStrIndex len,
|
||||||
|
@ -24,7 +24,7 @@ FriBidiLevel fribidi_get_par_embedding_levels_ex_compat(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FriBiDi>=1.0.0 gets bracket types here, ignore */
|
/* 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 FriBidiChar *str,
|
||||||
const FriBidiStrIndex len,
|
const FriBidiStrIndex len,
|
||||||
const FriBidiCharType *types,
|
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 */
|
/* functions */
|
||||||
|
|
||||||
#ifdef FRIBIDI_SHIM_IMPLEMENTATION
|
#ifdef FRIBIDI_SHIM_IMPLEMENTATION
|
||||||
|
#ifdef _MSC_VER
|
||||||
#define FRIBIDI_ENTRY
|
#define FRIBIDI_ENTRY
|
||||||
#else
|
#else
|
||||||
|
#define FRIBIDI_ENTRY __attribute__((visibility ("hidden")))
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
#define FRIBIDI_ENTRY extern
|
#define FRIBIDI_ENTRY extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user