Made this change to save ~3k of codespace in an embedded system by
using system libraries without stream support.

Chris
Index: src/base/ftsystem.c
===================================================================
--- src/base/ftsystem.c	(revision 50)
+++ src/base/ftsystem.c	(revision 51)
@@ -137,7 +137,7 @@
   /*                                                                       */
   /*************************************************************************/
 
-
+#if !defined(FT_DISABLE_STREAM_SUPPORT)
   /*************************************************************************/
   /*                                                                       */
   /* The macro FT_COMPONENT is used in trace mode.  It is an implicit      */
@@ -250,8 +250,8 @@
 
     return FT_Err_Ok;
   }
+#endif // #if !defined(FT_DISABLE_STREAM_SUPPORT)
 
-
 #ifdef FT_DEBUG_MEMORY
 
   extern FT_Int
Index: src/base/ftobjs.c
===================================================================
--- src/base/ftobjs.c	(revision 50)
+++ src/base/ftobjs.c	(revision 51)
@@ -157,6 +157,7 @@
                             (const FT_Byte*)args->memory_base,
                             args->memory_size );
     }
+#if !defined(FT_DISABLE_STREAM_SUPPORT)
     else if ( args->flags & FT_OPEN_PATHNAME )
     {
       /* create a normal system stream */
@@ -172,6 +173,7 @@
       FT_FREE( stream );
       stream = args->stream;
     }
+#endif
     else
       error = FT_Err_Invalid_Argument;
 
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to