aboutsummaryrefslogtreecommitdiff
path: root/fiv-thumbnail.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-07-23 10:30:33 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-07-23 10:39:53 +0200
commit4131a926f2c82365fd2a3098b59523ec9c19c412 (patch)
tree2165e2f0a4d64c4becea256f72ecce0aa2686835 /fiv-thumbnail.c
parent4fcc506d846129da1daa0d0e3e05aaa771e4f295 (diff)
downloadfiv-4131a926f2c82365fd2a3098b59523ec9c19c412.tar.gz
fiv-4131a926f2c82365fd2a3098b59523ec9c19c412.tar.xz
fiv-4131a926f2c82365fd2a3098b59523ec9c19c412.zip
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.
Diffstat (limited to 'fiv-thumbnail.c')
-rw-r--r--fiv-thumbnail.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c
index 779bb09..4899dfe 100644
--- a/fiv-thumbnail.c
+++ b/fiv-thumbnail.c
@@ -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);