fold_done:
-#if GLIB_CHECK_VERSION (2, 48, 0)
g_value_unset (&item);
-#else
- if (item.g_type != 0)
- g_value_unset (&item);
-#endif
return result;
}
privinc = include_directories('gst')
# Find dependencies
-glib_dep = dependency('glib-2.0', version : '>=2.44.0',
+glib_dep = dependency('glib-2.0', version : '>=2.56.0',
fallback: ['glib', 'libglib_dep'])
gobject_dep = dependency('gobject-2.0',
fallback: ['glib', 'libgobject_dep'])
{NULL,}
};
-/* g_ascii_string_to_unsigned is available since 2.54. Get rid of this wrapper
- * when we bump the version in 1.18 */
-#if !GLIB_CHECK_VERSION(2,54,0)
-#define g_ascii_string_to_unsigned parse_ascii_string_to_unsigned
-static gboolean
-parse_ascii_string_to_unsigned (const gchar * str, guint base, guint64 min,
- guint64 max, guint64 * out_num, GError ** error)
-{
- gchar *endptr = NULL;
- *out_num = g_ascii_strtoull (str, &endptr, base);
- if (errno)
- return FALSE;
- if (endptr == str)
- return FALSE;
- return TRUE;
-}
-#endif
-
static gboolean
parse_time_values (const gchar * line, GstClockTime * local_1,
GstClockTime * remote_1, GstClockTime * remote_2, GstClockTime * local_2)
#elif defined(G_OS_WIN32)
{
/* g_log_writer_supports_color is available since 2.50.0 */
-#if GLIB_CHECK_VERSION(2,50,0)
gint fd = _fileno (stdout);
/* On Windows 10, g_log_writer_supports_color will also setup the console
* so that it correctly interprets ANSI VT sequences if it's supported */
if (!_isatty (fd) || !g_log_writer_supports_color (fd))
colored_output = FALSE;
-#else
- colored_output = FALSE;
-#endif
}
#endif