Compile time improvments for NetWare and Win32 -- Guenter Knauf gk.gknw.de
[rrdtool.git] / src / rrd_gfx.c
index c012e5c..c56211d 100644 (file)
@@ -1081,9 +1081,11 @@ static void svg_write_text(FILE *fp, const char *text)
     case '"': fputs(""", fp); break;
     default:
         if (ch == 32) {
+#ifdef HAVE_MBSTOWCS     
             if (p <= cstr + 1 || !*p || *p == 32)
                 fputs("&#160;", fp); /* non-breaking space in unicode */
             else
+#endif
                 fputc(32, fp);
         } else if (ch < 32 || ch >= 127)
        fprintf(fp, "&#%d;", (int)ch);