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:
authorEion Robb <eion@robbmob.com>2016-06-20 11:52:08 +0300
committerEion Robb <eion@robbmob.com>2016-06-20 11:52:08 +0300
commitc6c43cda9064fb593f9f65bf09c16eb676c03de9 (patch)
treeb0167d0b10cbdf949a664f25916d6dd1016dab30
parentbe828438f087d9e3905fb3465ad5a4686908eaa7 (diff)
Use newer glib function for timestamps if available
-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 */