[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Question on correct usage of freetype2
From: |
Werner LEMBERG |
Subject: |
Re: [Devel] Question on correct usage of freetype2 |
Date: |
Sun, 09 Nov 2003 06:54:31 +0100 (CET) |
> Looks like a code like :
>
> #include <freetype/freetype.h>
>
> int main() {
> ;
> return 0;
> }
>
> no longer compiles with freetype cvs.
Correct.
> And suggested fix is :
>
> #include <ft2build.h>
> #include FT_FREETYPE_H
>
> int main() {
> ;
> return 0;
> }
Correct.
> My question is will the second code work on older Freetype 2.x
> releases?
Yes. It should work at least since 2.0.2 which has been released two
and a half years ago. Time enough for a transition, isn't it?
> And second question is was this change necessary as many projects
> use freetype as in first code ( MPlayer,Qt etc ). ?
The change was necessary since a public header file has been renamed
(to allow flat compilation). Additionally, we have already announced
a long time that the old scheme won't work with the 2.1 series.
Werner