freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Devel] #include hacks in freetype headers


From: Tom Kacvinsky
Subject: Re: [Devel] #include hacks in freetype headers
Date: Wed, 7 Feb 2001 17:39:18 -0500 (EST)

That sounds OK, but a question is this:

What to place in #else clause of the following:

#ifdef FT_BUILD_H
#include FT_BUILD_H
#else
...
#endif

That is, what should ... be replaced by?  It is not clear that it should always
be <freetype/config/ftbuild.h>.  Etc, etc...

Tom

On Wed, 7 Feb 2001, Keith Packard wrote:

>
> I'm having a minor problem with freetype2 header files because of the
> #include hack that was put in a few months ago.
>
> When building any X program that uses freetype2, part of the process is to
> generate make dependencies using the (ugly) 'makedepend' program that's  a
> part of XFree86.  This program is rather primitive and can't handle the
> #include FT_BUILD_H structure in the header files, this results both in
> nasty error messages and a Makefile lacking a few dependencies.
>
> It seems like we could have the same functionality that we have today by
> using:
>
> #ifdef FT_BUILD_H
> #include FT_BUILD_H
> #else
> #include <freetype/config/ftbuild.h>
> #endif
>
> As FT_BUILD_H is never defined by freetype, makedepend will skip over the
> problematic line and locate the correct include reference.
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]