freetype-devel
[Top][All Lists]
Advanced

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

[Devel] #include hacks in freetype headers


From: Keith Packard
Subject: [Devel] #include hacks in freetype headers
Date: Wed, 07 Feb 2001 12:44:02 -0800

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.

address@hidden   XFree86 Core Team              SuSE, Inc.





reply via email to

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