]> granicus.if.org Git - libass/commitdiff
If HAVE_FONTCONFIG is not defined, font_fontconfig might be declared both
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 28 Oct 2006 10:21:30 +0000 (10:21 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 28 Oct 2006 10:21:30 +0000 (10:21 +0000)
extern and static, causing compilation to fail

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20485 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_mp.c

index 6b40c0eabf7e27884ea7532580e06fee131536d5..331d2f78a85d088e63873b9e0e0b1b2b05649400 100644 (file)
@@ -41,7 +41,11 @@ char* ass_color = NULL;
 char* ass_border_color = NULL;
 char* ass_styles_file = NULL;
 
+#ifdef HAVE_FONTCONFIG
 extern int font_fontconfig;
+#else
+static int font_fontconfig = 0;
+#endif
 extern char* font_name;
 extern float text_font_scale_factor;
 extern int subtitle_autoscale;
@@ -200,11 +204,6 @@ ass_track_t* ass_read_subdata(sub_data* subdata, double fps) {
 char *get_path(char *);
 
 extern char *font_name;
-#ifdef HAVE_FONTCONFIG
-extern int font_fontconfig;
-#else
-static int font_fontconfig = 0;
-#endif
 
 void ass_configure(ass_instance_t* priv, int w, int h) {
        char *dir, *path, *family;