Skip to content

Commit

Permalink
Merge pull request #5651 from nulano/5637
Browse files Browse the repository at this point in the history
Hide FriBiDi shim symbols to avoid conflict with real FriBiDi library
  • Loading branch information
hugovk committed Sep 1, 2021
2 parents 5ef6290 + 259c671 commit 874118e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thirdparty/fribidi-shim/fribidi.c
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/thirdparty/fribidi-shim/fribidi.h
Expand Up @@ -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

Expand Down

0 comments on commit 874118e

Please sign in to comment.