diff options
author | David Hoyt <dhoyt@llnl.gov> | 2010-07-08 21:04:54 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-07-16 17:27:54 +0200 |
commit | c53457976e00264f0646ad040993ce100aa73e5a (patch) | |
tree | b55dca9377504f3c9246ee23b86a22c55858877b /gst/gstregistry.c | |
parent | 9d0e2e7252398c660c33c79256333f76a6d97dd0 (diff) |
registrybinary: Fix compatibility with GLib 2.25 when using MSVC
Newer GLib uses a new type for g_stat() and friends to improve
Windows compatibility. On POSIX this is a typedef to struct stat.
Fixes bug #623875.
Diffstat (limited to 'gst/gstregistry.c')
-rw-r--r-- | gst/gstregistry.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 71f52b4ae3..a8ed967a0d 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -1106,7 +1106,11 @@ gst_registry_scan_path_level (GstRegistryScanContext * context, return FALSE; while ((dirent = g_dir_read_name (dir))) { +#if GLIB_CHECK_VERSION(2,25,0) + GStatBuf file_status; +#else struct stat file_status; +#endif filename = g_build_filename (path, dirent, NULL); if (g_stat (filename, &file_status) < 0) { |