]> git.sesse.net Git - vlc/commitdiff
freetype: make sure fontconfig is still optional
authorDamien Fouilleul <damienf@videolan.org>
Tue, 21 Aug 2007 15:02:09 +0000 (15:02 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Tue, 21 Aug 2007 15:02:09 +0000 (15:02 +0000)
modules/misc/freetype.c

index 64b22b1aae08eebca26020051c31f3028d9b7e64..f6b91baf2bbe3b083ad3322c4ae0356fd6df898c 100644 (file)
@@ -239,7 +239,9 @@ typedef struct
 static int Render( filter_t *, subpicture_region_t *, line_desc_t *, int, int);
 static void FreeLines( line_desc_t * );
 static void FreeLine( line_desc_t * );
+#ifdef HAVE_FONTCONFIG
 static void FontBuilder( vlc_object_t *p_this);
+#endif
 
 /*****************************************************************************
  * filter_sys_t: freetype local data
@@ -463,6 +465,8 @@ static void Destroy( vlc_object_t *p_this )
     free( p_sys );
 }
 
+#ifdef HAVE_FONTCONFIG
+
 static void FontBuilder( vlc_object_t *p_this)
 {
     filter_t *p_filter = (filter_t*)p_this;
@@ -495,6 +499,8 @@ static void FontBuilder( vlc_object_t *p_this)
     vlc_mutex_unlock( &p_sys->fontconfig_lock );
 }
 
+#endif
+
 /*****************************************************************************
  * Make any TTF/OTF fonts present in the attachments of the media file
  * and store them for later use by the FreeType Engine