mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 09:06:07 +01:00
g_get_real_time appeard in 2.28
This commit is contained in:
parent
edde1bf00f
commit
519c606923
1 changed files with 10 additions and 0 deletions
|
@ -20,4 +20,14 @@
|
||||||
#define mutex_free(m) g_mutex_clear((m))
|
#define mutex_free(m) g_mutex_clear((m))
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue