--- tests/test-objects.c.orig 2012-03-08 19:12:28.630000003 -0500 +++ tests/test-objects.c 2012-03-08 19:31:17.610000003 -0500 @@ -26,11 +26,12 @@ #define G_LOG_DOMAIN "Dia" #include -#include - -#if GLIB_CHECK_VERSION(2,16,0) -#include -#endif +#if !GLIB_CHECK_VERSION(2,31,0) + #include + #if GLIB_CHECK_VERSION(2,16,0) + #include + #endif /* GLIB_CHECK_VERSION(2,16,0) */ +#endif /* !GLIB_CHECK_VERSION(2.31.0) */ #include "object.h" #include "plug-ins.h" --- objects/custom/shape_typeinfo.c.orig 2012-03-08 19:05:38.480000002 -0500 +++ objects/custom/shape_typeinfo.c 2012-03-08 19:09:37.430000003 -0500 @@ -27,8 +27,14 @@ #include "custom_util.h" #include #include + +#if !GLIB_CHECK_VERSION(2, 31, 0) #include #include +#else +#include +#endif + #include /* --- tests/test-boundingbox.c.orig 2012-03-08 19:45:48.050000001 -0500 +++ tests/test-boundingbox.c 2012-03-08 19:49:58.370000003 -0500 @@ -26,11 +26,13 @@ #define G_LOG_DOMAIN "Dia" #include -#include +#if !GLIB_CHECK_VERSION(2,31,0) + #include + #if GLIB_CHECK_VERSION(2,16,0) + #include + #endif /* GLIB_CHECK_VERSION(2,16,0) */ +#endif /* !GLIB_CHECK_VERSION(2,31,0) */ -#if GLIB_CHECK_VERSION(2,16,0) -#include -#endif #include "dialib.h" /*