From: Christian Dywan Date: Sun, 13 Nov 2011 19:02:02 +0000 (+0100) Subject: Work around G_CONST_RETURN use in unique.h X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77796803c5d906afc642ed8234e02b0d99d43090;p=midori Work around G_CONST_RETURN use in unique.h --- 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;