From 4131a926f2c82365fd2a3098b59523ec9c19c412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sat, 23 Jul 2022 10:30:33 +0200 Subject: 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. --- fiv-thumbnail.c | 6 +----- 1 file changed, 1 insertion(+), 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 #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); -- cgit v1.2.3