Commit 177e56187 for imagemagick.org
commit 177e561872723a913c0d35564467d38730d53067
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Thu Apr 17 22:13:37 2025 +0200
Temporary patch to make it possible to use the development libraw snapshot.
diff --git a/coders/dng.c b/coders/dng.c
index 8b785ef0d..f2c293a02 100644
--- a/coders/dng.c
+++ b/coders/dng.c
@@ -331,8 +331,14 @@ static void SetLibRawParams(const ImageInfo *image_info,Image *image,
#endif
}
+#define MAGICK_RAW_DEVELVERSION Devel202502
+
static void LibRawDataError(void *data,const char *magick_unused(file),
+#if defined(LIBRAW_VERSION_TAIL) && LIBRAW_VERSION_TAIL == MAGICK_RAW_DEVELVERSION
+ const INT64 offset)
+#else
const int offset)
+#endif
{
magick_unreferenced(file);
if (offset >= 0)