summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/svg/svg-color.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp
index 58f206422..c523c80e0 100644
--- a/src/svg/svg-color.cpp
+++ b/src/svg/svg-color.cpp
@@ -18,7 +18,13 @@
#include <math.h>
#include <glib/gstrfuncs.h>
#include <glib/ghash.h>
-#include <glib/gprintf.h>
+
+#include <glib/gutils.h>
+#if GLIB_CHECK_VERSION(2,9,0)
+#else
+# include <glib/gprintf.h>
+#endif
+
#include "svg.h"
struct SPSVGColor {