Code

compile without multibyte support
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Apr 2006 21:00:09 +0000 (21:00 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Apr 2006 21:00:09 +0000 (21:00 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@802 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_gfx.c

index 38d188ef136bb1096b9076d176ba91466cb2b7af..a71d43a01de5bfe95212b4c435a1383f8ca5f631 100644 (file)
@@ -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