From 95c757c4499986d884290bbabbc24e27dfda5a04 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 29 Jan 2013 03:52:57 +0000 Subject: [PATCH] allow terminology top build with 1.7? SVN revision: 83400 --- src/bin/termpty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 3d97c3c3..926be1f9 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c @@ -203,8 +203,11 @@ _cb_fd_read(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__) if (buf[i]) { +#if (EINA_VERSION_MAJOR > 1) || (EINA_VERSION_MINOR >= 8) g = eina_unicode_utf8_next_get(buf, &i); - /* i = evas_string_char_next_get(buf, i, &g); */ +#else + i = evas_string_char_next_get(buf, i, &g); +#endif if (i < 0) break; // DBG("(%i) %02x '%c'", j, g, g); }