diff options
author | Eion Robb <eion@robbmob.com> | 2017-04-11 12:23:57 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2017-04-11 12:23:57 +0300 |
commit | 1513ebdf47bd6b3e4e27dffbf2261aa0fab4082a (patch) | |
tree | 05e2ad1a5a2f67ad108dfc8663d7381586bf2382 /skypeweb/glibcompat.h | |
parent | 35624c3430ce37696eb760dd7c8503f184c8e9f2 (diff) |
libpurple 3.0 compatibility, see issue #538
Diffstat (limited to 'skypeweb/glibcompat.h')
-rw-r--r-- | skypeweb/glibcompat.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/skypeweb/glibcompat.h b/skypeweb/glibcompat.h new file mode 100644 index 0000000..35cb10a --- /dev/null +++ b/skypeweb/glibcompat.h @@ -0,0 +1,21 @@ +#ifndef _GLIBCOMPAT_H_
+#define _GLIBCOMPAT_H_
+
+#if !GLIB_CHECK_VERSION(2, 32, 0)
+#define g_hash_table_contains(hash_table, key) g_hash_table_lookup_extended(hash_table, key, NULL, NULL)
+#endif /* 2.32.0 */
+
+
+#if !GLIB_CHECK_VERSION(2, 28, 0)
+gint64
+g_get_real_time()
+{
+ GTimeVal val;
+
+ g_get_current_time (&val);
+
+ return (((gint64) val.tv_sec) * 1000000) + val.tv_usec;
+}
+#endif /* 2.28.0 */
+
+#endif /*_GLIBCOMPAT_H_*/
\ No newline at end of file |