W32 GLocalFileStat: remove compatibility time fields

Use tv_*tim.tv_sec everywhere.
This commit is contained in:
Руслан Ижбулатов
2020-01-30 01:56:56 +00:00
parent 0550104cf8
commit ac58ecbab0
5 changed files with 30 additions and 16 deletions

View File

@@ -99,7 +99,11 @@ test_validity (void)
thumbnail_path = g_test_get_filename (G_TEST_DIST, "thumbnails",
tests[i].filename, NULL);
file_uri = g_strconcat ("file:///tmp/", tests[i].filename, NULL);
#ifdef G_OS_WIN32
stat_buf.st_mtim.tv_sec = tests[i].mtime;
#else
stat_buf.st_mtime = tests[i].mtime;
#endif
stat_buf.st_size = tests[i].size;
result = thumbnail_verify (thumbnail_path, file_uri, &stat_buf);