shithub: freetype+ttf2subf

Download patch

ref: 6650be7c43c9f7299a0bfbd5d81b481efbe9d95b
parent: 7441dd874dd8e7127fc27125d2442b1b7e57ae88
author: Werner Lemberg <[email protected]>
date: Mon May 13 06:05:29 EDT 2013

[truetype] Avoid empty source file.

* src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]:
Provide dummy typedef.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2013-05-13  Werner Lemberg  <[email protected]>
 
+	[truetype] Avoid empty source file.
+
+	* src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]:
+	Provide dummy typedef.
+
+2013-05-13  Werner Lemberg  <[email protected]>
+
 	* src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.
 
 	Fix suggested by Vaibhav Nagarnaik <[email protected]>.
--- a/src/truetype/ttsubpix.c
+++ b/src/truetype/ttsubpix.c
@@ -1074,7 +1074,12 @@
     }
   }
 
-#endif /* TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#else /* !TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+
+  /* ANSI C doesn't like empty source files */
+  typedef int  _tt_subpix_dummy;
+
+#endif /* !TT_CONFIG_OPTION_SUBPIXEL_HINTING */
 
 
 /* END */