shithub: freetype+ttf2subf

Download patch

ref: 20a8d0cf38fa4f74e9dd6b2a95b2eef25d159079
parent: 7f049f422141b79a5bc6d0abf24b954906629d98
author: Werner Lemberg <[email protected]>
date: Sat Feb 25 11:56:04 EST 2006

* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-25  Werner Lemberg  <[email protected]>
+
+	* devel/ftoption.h: Synchronize with
+	include/freetype/config/ftoption.h.
+
 2006-02-25  David Turner  <[email protected]>
 
 	Fix compiler warnings as well as C++ compilation problems.
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -586,8 +586,13 @@
    * certain functions like ft_mem_alloc in a way that prevents recent GCC
    * releases from emitting zillions of `strict aliasing' warning messages
    * each time a memory-management function is called.
+   *
+   * Note that it shouldn't be activated when building the library with
+   * a C++ compiler.
    */
+#ifndef __cplusplus
 #define FT_STRICT_ALIASING
+#endif
 
 
   /*
@@ -595,6 +600,10 @@
    * structures that was used prior to FreeType 2.2.  This also compiles in
    * a few obsolete functions to avoid linking problems on typical Unix
    * distributions.
+   *
+   * For embedded systems or building a new distribution from scratch, it
+   * is recommended to disable the macro since it reduces the library's code
+   * size and activates a few memory-saving optimizations as well.
    */
 #undef FT_CONFIG_OPTION_OLD_INTERNALS