Commit 0406cbe4 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Drop compat code for glib < 2.28

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 80a54e70
......@@ -20,14 +20,4 @@
#define mutex_free(m) g_mutex_clear((m))
#endif
/* g_get_real_time appeared in 2.28 */
#if !GLIB_CHECK_VERSION(2, 27, 0)
inline static gint64 g_get_real_time(void)
{
GTimeVal tv;
g_get_current_time(&tv);
return (((gint64) tv.tv_sec) * 1000000) + tv.tv_usec;
}
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment