From bfd01bdc1700bac53392dc827f3f7870124d0406 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 19 Dec 2009 15:41:47 +0000 Subject: Make ass_mp.h use the system-libass headers when the internal one is disabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30068 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 6 ++++++ libass/ass_mp.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 234ad41c58..05af22bf37 100755 --- a/configure +++ b/configure @@ -6180,6 +6180,11 @@ if test "$_ass" = yes ; then else def_ass='#undef CONFIG_ASS' fi +if test "$ass_internal" = yes ; then + def_ass_internal='#define CONFIG_ASS_INTERNAL 1' +else + def_ass_internal='#undef CONFIG_ASS_INTERNAL' +fi echores "$_ass" @@ -8772,6 +8777,7 @@ $def_tv_v4l2 /* font stuff */ $def_ass +$def_ass_internal $def_bitmap_font $def_enca $def_fontconfig diff --git a/libass/ass_mp.h b/libass/ass_mp.h index 64b411a550..1c013c0db9 100644 --- a/libass/ass_mp.h +++ b/libass/ass_mp.h @@ -24,8 +24,11 @@ #define LIBASS_MP_H #include "subreader.h" -#include "ass_types.h" +#ifdef CONFIG_LIBASS_INTERNAL #include "ass.h" +#else +#include +#endif extern ass_library_t* ass_library; extern int ass_enabled; -- cgit v1.2.3