Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skypeweb/skypeweb_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/skypeweb/skypeweb_util.c b/skypeweb/skypeweb_util.c
index 9ed3cf6..77d43de 100644
--- a/skypeweb/skypeweb_util.c
+++ b/skypeweb/skypeweb_util.c
@@ -216,11 +216,15 @@ skypeweb_hmac_sha256(char *input)
gint64
skypeweb_get_js_time()
{
+#if GLIB_CHECK_VERSION(2, 28, 0)
+ return (g_get_real_time() / 1000);
+#else
GTimeVal val;
g_get_current_time (&val);
return (((gint64) val.tv_sec) * 1000) + (val.tv_usec / 1000);
+#endif
}
/* copied from oscar.c to be libpurple 2.1 compatible */