diff options
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r-- | gtk/gtktestutils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index 854e74fe6f..8cb53981b2 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -17,6 +17,14 @@ */ +/* We need to remove G_DISABLE_ASSERT to ensure g_test_init() works; + * this needs to happen before we end up including glib.h, so we should + * do it as soon as possible. + */ +#ifdef G_DISABLE_ASSERT +#undef G_DISABLE_ASSERT +#endif + #include "config.h" #include "gtkspinbutton.h" |