From 77796803c5d906afc642ed8234e02b0d99d43090 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 13 Nov 2011 20:02:02 +0100 Subject: [PATCH] Work around G_CONST_RETURN use in unique.h --- midori/midori-app.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/midori/midori-app.c b/midori/midori-app.c index 4c2afc50..c280d6a9 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -37,7 +37,13 @@ #elif HAVE_UNIQUE typedef gpointer MidoriAppInstance; #define MidoriAppInstanceNull NULL + #if defined(G_DISABLE_DEPRECATED) && !defined(G_CONST_RETURN) + #define G_CONST_RETURN + #endif #include + #ifdef G_DISABLE_DEPRECATED + #undef G_CONST_RETUTN + #endif #define MIDORI_UNIQUE_COMMAND 1 #else typedef gint MidoriAppInstance; -- 2.39.5