From 005a5e1dc79c9a743df48556e0f54c84f6fd1aa0 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 25 Apr 2006 21:00:09 +0000 Subject: [PATCH] compile without multibyte support git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@802 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_gfx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index 38d188ef..a71d43a0 100644 --- a/program/src/rrd_gfx.c +++ b/program/src/rrd_gfx.c @@ -1062,7 +1062,9 @@ static void svg_write_text(FILE *fp, const char *text) text_count = mbstowcs(cstr, "Enc-Err", 6); p = cstr; #else - unsigned char *p = text, ch; + unsigned char *p = text; + unsigned char *cstr; + char ch; if (!p) return; #endif @@ -1747,7 +1749,8 @@ static void eps_write_text(eps_state *state, gfx_node_t *node) text_count = mbstowcs(cstr, "Enc-Err", 6); p = cstr; #else - unsigned char *p = node->text, ch; + const unsigned char *p = node->text; + unsigned char ch; if (!p) return; #endif -- 2.30.2