From 3f7ff6afbe9f5c0f37271fc61b33914e52788fc0 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 2 Nov 2003 08:58:53 +0000 Subject: [PATCH] * include/freetype/freetype.h: Check that ft2build.h has been loaded first. --- ChangeLog | 5 +++++ include/freetype/freetype.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5c8f45146..377c9b580 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-01 Werner Lemberg + + * include/freetype/freetype.h: Check that ft2build.h has been + loaded first. + 2003-10-31 Detlef Würkner * src/base/fttype1.c (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names): diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index fee70b378..f240751d2 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -16,6 +16,15 @@ /***************************************************************************/ +#ifndef __FT2_BUILD_GENERIC_H__ +#error "`ft2build.h' hasn't been included yet!" +#error "Please always use macros to include FreeType header files." +#error "Example:" +#error " #include " +#error " #include FT_FREETYPE_H" +#endif + + #ifndef __FREETYPE_H__ #define __FREETYPE_H__