From 7330f07dd763237b2cf22ee23528cc55541428f0 Mon Sep 17 00:00:00 2001
From: Přemysl Eric Janouch
Date: Thu, 28 Mar 2024 16:03:20 +0100
Subject: Fix LibRaw 0.20 compatibility
---
fiv-io.c | 2 ++
fiv-thumbnail.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/fiv-io.c b/fiv-io.c
index a405c93..2ea06cf 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -42,6 +42,8 @@
#include
#if LIBRAW_VERSION >= LIBRAW_MAKE_VERSION(0, 21, 0)
#define LIBRAW_OPIONS_NO_MEMERR_CALLBACK 0
+#else
+#define rawparams params
#endif
#endif // HAVE_LIBRAW
#ifdef HAVE_RESVG
diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c
index 80f378e..fffbac7 100644
--- a/fiv-thumbnail.c
+++ b/fiv-thumbnail.c
@@ -392,7 +392,7 @@ extract_libraw_unpack(libraw_data_t *iprc, int *flip, GError **error)
// The main image's "flip" often matches up, but sometimes doesn't, e.g.:
// - Phase One/H 25/H25_Outdoor_.IIQ
// - Phase One/H 25/H25_IT8.7-2_Card.TIF
- *flip = iprc->sizes.flip
+ *flip = iprc->sizes.flip;
return TRUE;
}
--
cgit v1.2.3-70-g09d2