libpurple/internal.h

branch
release-2.x.y
changeset 35977
9b7b48f446f4
parent 35660
c7a49364ce5f
child 35989
2b5a26ddbb69
child 36021
61e8e081e93c
--- a/libpurple/internal.h	Tue May 06 12:25:44 2014 +0200
+++ b/libpurple/internal.h	Tue May 06 12:43:32 2014 +0200
@@ -154,6 +154,19 @@
 
 #include <glib-object.h>
 
+#ifdef __clang__
+
+#undef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
+	_Pragma ("clang diagnostic push") \
+	_Pragma ("clang diagnostic ignored \"-Wdeprecated-declarations\"")
+
+#undef G_GNUC_END_IGNORE_DEPRECATIONS
+#define G_GNUC_END_IGNORE_DEPRECATIONS \
+	_Pragma ("clang diagnostic pop")
+
+#endif /* __clang__ */
+
 /* Safer ways to work with static buffers. When using non-static
  * buffers, either use g_strdup_* functions (preferred) or use
  * g_strlcpy/g_strlcpy directly. */

mercurial