aboutsummaryrefslogtreecommitdiff
path: root/fiv-thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-thumbnail.c')
-rw-r--r--fiv-thumbnail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c
index f95ed70..d0ec91a 100644
--- a/fiv-thumbnail.c
+++ b/fiv-thumbnail.c
@@ -33,6 +33,9 @@
#ifdef HAVE_LIBRAW
#include <libraw.h>
+#if LIBRAW_VERSION >= LIBRAW_MAKE_VERSION(0, 21, 0)
+#define LIBRAW_OPIONS_NO_MEMERR_CALLBACK 0
+#endif
#endif // HAVE_LIBRAW
// TODO(p): Consider merging back with fiv-io.