# HG changeset patch # User corey # Date 1159314201 0 # Node ID 0dc175cbeed879d7b5038a3d72425305b5e21bc6 # Parent f04afca36cf4f28e3c797846a32665b12edac7c5 vo_caca: use the pre-1.x compatibility layer so recent versions of libcaca still work. diff -r f04afca36cf4 -r 0dc175cbeed8 configure --- a/configure Tue Sep 26 21:10:50 2006 +0000 +++ b/configure Tue Sep 26 23:43:21 2006 +0000 @@ -4172,6 +4172,9 @@ if ( caca-config --version ) >> "$TMPLOG" 2>&1 ; then cat > $TMPC << EOF #include +#ifdef CACA_API_VERSION_1 + #include +#endif int main(void) { (void) caca_init(); return 0; } EOF cc_check `caca-config --libs` && _caca=yes diff -r f04afca36cf4 -r 0dc175cbeed8 libvo/vo_caca.c --- a/libvo/vo_caca.c Tue Sep 26 21:10:50 2006 +0000 +++ b/libvo/vo_caca.c Tue Sep 26 23:43:21 2006 +0000 @@ -28,6 +28,14 @@ #include "mp_msg.h" #include +#ifdef CACA_API_VERSION_1 + /* Include the pre-1.x compatibility header. + * Once libcaca 1.x is widespread, vo_caca should be fully + * converted to the new API. A patch exists: + * http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2006-July/044674.html + */ + #include +#endif static vo_info_t info = { "libcaca",