diff libvo/vo_caca.c @ 19979:0dc175cbeed8

vo_caca: use the pre-1.x compatibility layer so recent versions of libcaca still work.
author corey
date Tue, 26 Sep 2006 23:43:21 +0000
parents 75327b24e06f
children ad7747bce52d
line wrap: on
line diff
--- 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 <caca.h>
+#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 <caca0.h>
+#endif
 
 static vo_info_t info = {
   "libcaca",