diff -up -r rsvg-convert.c rsvg-convert.c
--- rsvg-convert.c	2013-10-11 21:38:23.000000000 +0300
+++ rsvg-convert.c	2013-11-05 15:44:09.302142800 +0200
@@ -56,6 +56,11 @@
 #include <cairo-xml.h>
 #endif
 
+#if defined(G_OS_WIN32)
+#include <io.h>
+#include <fcntl.h>
+#endif
+
 static void
 display_error (GError * err)
 {
@@ -209,6 +214,10 @@ main (int argc, char **argv)
 
         g_free (output);
     }
+#if defined(G_OS_WIN32)
+    else
+        _setmode (fileno (stdout), _O_BINARY);
+#endif
 
     if (args)
         while (args[n_args] != NULL)



--- configure~0	2013-11-21 07:24:38.782406900 +0200
+++ configure	2013-11-21 07:47:16.435472900 +0200
@@ -14004,9 +14004,9 @@
 CFLAGS=
 
   for flag in  \
-  -Wall -Wextra \
+  -Wall -Wextra -Wno-pointer-sign \
   -Wunused -Wreturn-type -Wswitch -Wcomment -Wtrigraphs \
-  -Wchar-subscripts -Wparentheses -Winline -Wredundant-decls \
+  -Wchar-subscripts -Wparentheses -Wredundant-decls \
   -Wformat-nonliteral -Werror=format-security \
   -Wsign-compare -Werror=implicit-function-declaration \
   -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \


--- rsvg-base.c~0	2013-05-11 12:19:07.000000000 +0300
+++ rsvg-base.c	2013-11-21 07:38:29.429907700 +0200
@@ -2145,6 +2145,26 @@
     g_set_error (error, RSVG_ERROR, 0, _("%s: assertion `%s' failed"), pretty_function, expression);
 }
 
+#if defined(G_OS_WIN32)
+char * canonicalize_file_name (const char *);
+
+char *
+canonicalize_file_name (const char *fname)
+{
+    char abs_fname[MAX_PATH], *p, *q;
+
+    if ((fname[0] && fname[1] == ':')
+        || _fullpath (abs_fname, fname, sizeof (abs_fname)) == NULL)
+        strcpy (abs_fname, fname);
+    p = g_malloc (strlen (abs_fname) + 1);
+    strcpy (p, abs_fname);
+    for (q = p; *q; q++)
+        if (G_IS_DIR_SEPARATOR (*q))
+            *q = G_DIR_SEPARATOR;
+    return p;
+}
+#endif
+
 static gboolean
 _rsvg_handle_allow_load (RsvgHandle *handle,
                          const char *uri,


--- configure.~2~	2013-12-22 18:29:43.575375000 +0200
+++ configure	2013-12-22 18:41:09.387875000 +0200
@@ -14012,7 +14012,7 @@
   -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
   -Wnoaggregate-return -Wcast-align -Wimplicit -Wuninitialized \
   -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
-  -Wpacked -Wmissing-format-attribute -Wshadow \
+  -Wpacked -Wmissing-format-attribute \
   -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
   -Wdeclaration-after-statement -Wold-style-definition \
   -Wno-missing-field-initializers -Wno-unused-parameter \
