Fix the remaining Windows build error
Linux has st_mtim (and an st_mtime macro), macOS has st_mtimespec (and an st_mtime macro), Windows has just st_mtime. GFileInfo would be another option, though it seems unnecessary.
This commit is contained in:
parent
4fcc506d84
commit
4131a926f2
|
@ -34,10 +34,6 @@
|
|||
#include <libraw.h>
|
||||
#endif // HAVE_LIBRAW
|
||||
|
||||
#ifndef __linux__
|
||||
#define st_mtim st_mtimespec
|
||||
#endif // ! __linux__
|
||||
|
||||
// TODO(p): Consider merging back with fiv-io.
|
||||
#define FIV_THUMBNAIL_ERROR fiv_thumbnail_error_quark()
|
||||
|
||||
|
@ -480,7 +476,7 @@ fiv_thumbnail_produce(GFile *target, FivThumbnailSize max_size, GError **error)
|
|||
g_string_append_printf(
|
||||
thum, "%s%c%s%c", THUMB_URI, 0, uri, 0);
|
||||
g_string_append_printf(
|
||||
thum, "%s%c%ld%c", THUMB_MTIME, 0, (long) st.st_mtim.tv_sec, 0);
|
||||
thum, "%s%c%ld%c", THUMB_MTIME, 0, (long) st.st_mtime, 0);
|
||||
g_string_append_printf(
|
||||
thum, "%s%c%ld%c", THUMB_SIZE, 0, (long) filesize, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue