Work around G_CONST_RETURN use in unique.h

This commit is contained in:
Christian Dywan 2011-11-13 20:02:02 +01:00
parent 8c14613673
commit 77796803c5

View file

@ -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 <unique/unique.h>
#ifdef G_DISABLE_DEPRECATED
#undef G_CONST_RETUTN
#endif
#define MIDORI_UNIQUE_COMMAND 1
#else
typedef gint MidoriAppInstance;