Skip to content

Commit

Permalink
build: macos: fix path to fribidi
Browse files Browse the repository at this point in the history
On MacOS, it seems that fribidi.h isn't in its own subfolder of
fribidi/ -- therefore, elide this if the compiling host is MacOS.
  • Loading branch information
ThomasAdam committed Feb 20, 2025
1 parent 7b901c0 commit 49637b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/BidiJoin.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

#ifdef HAVE_BIDI

#if !defined(HOST_MACOS)
#include <fribidi/fribidi.h>
#else
#include <fribidi.h>
#endif

/*
* Shape/Join a passed-in visual string
Expand Down
5 changes: 5 additions & 0 deletions libs/FBidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@

#include "safemalloc.h"
#include "BidiJoin.h"
#if !defined(HOST_MACOS)
#include <fribidi/fribidi.h>
#else
#include <fribidi.h>
#endif

#include <stdio.h>

Bool FBidiIsApplicable(const char *charset)
Expand Down

0 comments on commit 49637b0

Please sign in to comment.