libpurple/glibcompat.h

changeset 35190
5986ee34c476
parent 35081
eda7bae766d4
child 35194
9a0203562da5
--- a/libpurple/glibcompat.h	Sun Jan 26 02:12:49 2014 +0530
+++ b/libpurple/glibcompat.h	Mon Jan 27 04:41:33 2014 +0530
@@ -41,6 +41,9 @@
 
 #if !GLIB_CHECK_VERSION(2, 32, 0)
 
+#include <glib.h>
+#include <glib-object.h>
+
 #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 #define G_GNUC_END_IGNORE_DEPRECATIONS
 
@@ -75,6 +78,8 @@
 
 #if !GLIB_CHECK_VERSION(2, 26, 0)
 
+typedef struct stat GStatBuf;
+
 static inline void g_object_notify_by_pspec(GObject *object, GParamSpec *pspec)
 {
 	g_object_notify(object, g_param_spec_get_name(pspec));
@@ -83,7 +88,7 @@
 static inline void g_object_class_install_properties(GObjectClass *oclass,
 	guint n_pspecs, GParamSpec **pspecs)
 {
-	gint i;
+	guint i;
 	for (i = 1; i < n_pspecs; ++i)
 		g_object_class_install_property(oclass, i, pspecs[i]);
 }

mercurial