shithub: freetype+ttf2subf

Download patch

ref: 3f7ff6afbe9f5c0f37271fc61b33914e52788fc0
parent: 40bb0964f2885a2cf5dcc4881448c4089761b577
author: Werner Lemberg <[email protected]>
date: Sun Nov 2 03:58:53 EST 2003

* include/freetype/freetype.h: Check that ft2build.h has been
loaded first.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-01  Werner Lemberg  <[email protected]>
+
+	* include/freetype/freetype.h: Check that ft2build.h has been
+	loaded first.
+
 2003-10-31  Detlef W�rkner  <[email protected]>
 
 	* src/base/fttype1.c (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names):
--- 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 <ft2build.h>"
+#error "  #include FT_FREETYPE_H"
+#endif
+
+
 #ifndef __FREETYPE_H__
 #define __FREETYPE_H__