]> spindle.queued.net Git - midori/commitdiff
Work around G_CONST_RETURN use in unique.h
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 Nov 2011 19:02:02 +0000 (20:02 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 15 Nov 2011 17:34:19 +0000 (18:34 +0100)
midori/midori-app.c

index 4c2afc50847b27739df373c66192bd3c5facb508..c280d6a9b3d5d5965a3a9052702839c852e8656e 100644 (file)
 #elif HAVE_UNIQUE
     typedef gpointer MidoriAppInstance;
     #define MidoriAppInstanceNull NULL
+    #if defined(G_DISABLE_DEPRECATED) && !defined(G_CONST_RETURN)
+        #define G_CONST_RETURN
+    #endif
     #include <unique/unique.h>
+    #ifdef G_DISABLE_DEPRECATED
+        #undef G_CONST_RETUTN
+    #endif
     #define MIDORI_UNIQUE_COMMAND 1
 #else
     typedef gint MidoriAppInstance;