Fix build for glib < 2.32 release-2.x.y

Fri, 09 May 2014 21:43:36 +0200

author
Tomasz Wasilczyk <twasilczyk@pidgin.im>
date
Fri, 09 May 2014 21:43:36 +0200
branch
release-2.x.y
changeset 36021
61e8e081e93c
parent 36018
cc1066974ce4
child 36022
256604cbbe34

Fix build for glib < 2.32

libpurple/internal.h file | annotate | diff | comparison | revisions
--- a/libpurple/internal.h	Wed May 07 17:16:22 2014 +0200
+++ b/libpurple/internal.h	Fri May 09 21:43:36 2014 +0200
@@ -154,6 +154,13 @@
 
 #include <glib-object.h>
 
+#if !GLIB_CHECK_VERSION(2, 32, 0)
+
+#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#define G_GNUC_END_IGNORE_DEPRECATIONS
+
+#endif /* 2.32.0 */
+
 #ifdef __clang__
 
 #undef G_GNUC_BEGIN_IGNORE_DEPRECATIONS

mercurial