Commit 06e31e9b5e210a498067d392f27c81aa0199b4bf

Werner Lemberg 2012-08-27T09:35:22

[truetype] Fix compilation warning. * src/truetype/ttgload.c (IS_HINTED): Move macro to... * src/truetype/ttobjs.h: This header file.

diff --git a/ChangeLog b/ChangeLog
index 64ab2ca..456abdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-08-27  Werner Lemberg  <wl@gnu.org>
 
+	[truetype] Fix compilation warning.
+
+	* src/truetype/ttgload.c (IS_HINTED): Move macro to...
+	* src/truetype/ttobjs.h: This header file.
+
+2012-08-27  Werner Lemberg  <wl@gnu.org>
+
 	[autofit, cff, pshinter, psnames] More renamings for orthogonality.
 
 	* src/autofit/afmodule.c, src/autofit/afpic.h:
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 94ffde4..805bd95 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -262,10 +262,6 @@
   }
 
 
-#undef  IS_HINTED
-#define IS_HINTED( flags )  ( ( flags & FT_LOAD_NO_HINTING ) == 0 )
-
-
   /*************************************************************************/
   /*                                                                       */
   /* The following functions are used by default with TrueType fonts.      */
diff --git a/src/truetype/ttobjs.h b/src/truetype/ttobjs.h
index 5a58bd2..c6724a8 100644
--- a/src/truetype/ttobjs.h
+++ b/src/truetype/ttobjs.h
@@ -428,6 +428,10 @@ FT_BEGIN_HEADER
   tt_slot_init( FT_GlyphSlot  slot );
 
 
+  /* auxiliary */
+#define IS_HINTED( flags )  ( ( flags & FT_LOAD_NO_HINTING ) == 0 )
+
+
 FT_END_HEADER
 
 #endif /* __TTOBJS_H__ */