tomolt / libschrift

A lightweight TrueType font rendering library
ISC License
471 stars 32 forks source link

Fixed OSx build #15

Closed bakwc closed 2 years ago

bakwc commented 3 years ago

On MacOS uint_fast32_t is not equal to unsigned long. Compilation failed because there is two different declaration with different types, eg:

static int cmap_fmt4(SFT_Font *font, uint_fast32_t table, uint_fast32_t charCode, uint_fast32_t *glyph);

and

static int cmap_fmt4(SFT_Font *font, uint_fast32_t table, uint_fast32_t charCode, SFT_Glyph *glyph)
tomolt commented 2 years ago

I believe this issue had already been resolved on the develop branch for a long time, which has since been merge into the master branch

sternenseemann commented 2 years ago

Can confirm nixpkgs can build libschrift on x86_64-darwin without any patches.