mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
win32: Fix link error with _wstat32i64() on 64-bit
_wstat32i64() doesn't exist in msvcrt.dll. This doesn't cause a problem on 32-bit Windows because mingw-w64 #defines _wstat32i64 to _wstati64, but on 64-bit Windows we get a link error. In addition, _wstat32i64() takes a struct _stat32i64 *, but GLocalFileStat is #defined to struct _stati64, which is not the same type on 64-bit Windows. Fix by using _wstati64(). https://bugzilla.gnome.org/show_bug.cgi?id=749161
This commit is contained in:
parent
da2217859f
commit
4745c08220
@ -2682,7 +2682,7 @@ g_local_file_measure_size_of_file (gint parent_fd,
|
||||
(!g_path_is_absolute (filename) || len > g_path_skip_root (filename) - filename))
|
||||
wfilename[len] = '\0';
|
||||
|
||||
retval = _wstat32i64 (wfilename, &buf);
|
||||
retval = _wstati64 (wfilename, &buf);
|
||||
save_errno = errno;
|
||||
|
||||
g_free (wfilename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user