Patches for framebuffer/font_freetype.c

John-Mark Bell jmb at netsurf-browser.org
Wed Jun 30 21:13:32 BST 2010


On Wed, 2010-06-30 at 19:40 +0200, m0n0 wrote:
> Hello there, 
> 
> because I'm using an newer version of freetype2, I use this patch to
> compile font_freetype.c, than I add 
> -DFREETYPE_VERSION=20312 to the CFLAGS in Makefile.config

No, this is not the correct approach. If you need to detect the version
of freetype in use, include FT_FREETYPE_H and conditionalise on the
values of FREETYPE_MAJOR, FREETYPE_MINOR, and FREETYPE_PATCH.

In this case, even this is unnecessary. The correct fix is to include
the freetype headers in the way expected by freetype. This is what I
have done in r10591.


J.




More information about the netsurf-dev mailing list