CC: | Yanick Champoux <yanick [...] babyl.dyndns.org> |
Subject: | [PATCH] add compatibility layer for v1.x of the libCaca API |
Date: | Sat, 7 May 2011 11:54:24 -0400 |
To: | bug-Term-Caca [...] rt.cpan.org |
From: | Yanick Champoux <yanick [...] babyl.dyndns.org> |
as described at
http://caca.zoy.org/doxygen/libcaca/libcaca-migrating.html
---
lib/Term/Caca.xs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/Term/Caca.xs b/lib/Term/Caca.xs
index ce00de2..a84b1e8 100644
--- a/lib/Term/Caca.xs
+++ b/lib/Term/Caca.xs
@@ -5,6 +5,10 @@
#include "XSUB.h"
#include "caca.h"
+#ifdef CACA_API_VERSION_1
+# include <caca0.h>
+#endif
+
#include <sys/types.h>
/* ref($object) eq 'HASH' && $object->{__address} */
--
1.7.4.1