 gdk-pixbuf/gdk-pixbuf-private.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdk-pixbuf/gdk-pixbuf-private.h b/gdk-pixbuf/gdk-pixbuf-private.h
index 552e084..c076269 100644
--- a/gdk-pixbuf/gdk-pixbuf-private.h
+++ b/gdk-pixbuf/gdk-pixbuf-private.h
@@ -47,6 +47,9 @@ typedef struct _GdkPixbufClass GdkPixbufClass;
 #define GDK_PIXBUF_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF, GdkPixbufClass))
 
 /* Helper macros to convert between density units */
+#ifdef _MSC_VER
+#define round(value) floor((value) + 0.5)
+#endif
 #define DPI_TO_DPM(value) ((int) round ((value) * 1000 / 25.4))
 #define DPI_TO_DPCM(value) ((int) round ((value) / 2.54))
 #define DPM_TO_DPI(value) ((int) round ((value) * 25.4 / 1000))
