diff options
author | John Emmas <johne53@tiscali.co.uk> | 2015-10-04 14:18:54 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2015-10-04 14:18:54 +0100 |
commit | c68736bc028a4965df4d43d59e550ba3185054fb (patch) | |
tree | 1c9b33f16e2f93ee621d0ad7246959513e9ab136 /libs/ardour/vst_info_file.cc | |
parent | cf33204e358de6ee2f46a7c595e27948994c80bf (diff) |
Change a few instances of 'stat()' to use 'g_stat()' (for UTF8 compatibility on Windows)
Diffstat (limited to 'libs/ardour/vst_info_file.cc')
-rw-r--r-- | libs/ardour/vst_info_file.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index fb8e7dc37a..6ab9de2a2b 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -27,7 +27,6 @@ #include <cassert> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> @@ -419,11 +418,11 @@ vstfx_infofile_for_read (const char* dllpath) string const path = vstfx_infofile_path (dllpath); if (Glib::file_test (path, Glib::FileTest (Glib::FILE_TEST_EXISTS | Glib::FILE_TEST_IS_REGULAR))) { - struct stat dllstat; - struct stat fsistat; + GStatBuf dllstat; + GStatBuf fsistat; - if (stat (dllpath, &dllstat) == 0) { - if (stat (path.c_str (), &fsistat) == 0) { + if (g_stat (dllpath, &dllstat) == 0) { + if (g_stat (path.c_str (), &fsistat) == 0) { if (dllstat.st_mtime <= fsistat.st_mtime) { /* plugin is older than info file */ return g_fopen (path.c_str (), "rb"); |