Commit fe6da50d04675baab18cd09359ba145e52b587c7

Werner Lemberg 2010-01-05T10:10:15

Thinkos.

diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index 29c3cae..2b535b0 100644
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -212,8 +212,12 @@
 
     /* `glyph_names' is set to 0 for CID fonts which do not */
     /* include an encoding.  How can we deal with these?    */
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
     if ( decoder->glyph_names == 0                   &&
          !face->root.internal->incremental_interface )
+#else
+    if ( decoder->glyph_names == 0 )
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
     {
       FT_ERROR(( "t1operator_seac:"
                  " glyph names table not available in this font\n" ));
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index cd11c12..74fb73d 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1278,9 +1278,13 @@
 
     if ( loader->byte_len > 0 )
     {
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
       /* for the incremental interface, `glyf_offset' is always zero */
       if ( !loader->glyf_offset                        &&
            !face->root.internal->incremental_interface )
+#else
+      if ( !loader->glyf_offset )
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
       {
         FT_TRACE2(( "no `glyf' table but non-zero `loca' entry\n" ));
         error = TT_Err_Invalid_Table;