* LibRaw seems to be slower than exiv2, so let exiv2 have priority.
*/
-#include "main.h"
+#include "image-load-libraw.h"
+
+#include <config.h>
-#include "filedata.h"
-#include "filefilter.h"
#include "image-load.h"
-#include "image-load-libraw.h"
#ifdef HAVE_RAW
-#include <libraw/libraw.h>
+#include <fcntl.h>
#include <sys/mman.h>
+#include <sys/stat.h>
+
+#include <libraw/libraw.h>
+
+#include "debug.h"
+#include "filedata.h"
+#include "filefilter.h"
struct UnmapData
{
static GList *libraw_unmap_list = nullptr;
-void libraw_free_preview(guchar *buf)
+void libraw_free_preview(const guchar *buf)
{
GList *work = libraw_unmap_list;
#else /* !define HAVE_RAW */
-void libraw_free_preview(guchar *)
+void libraw_free_preview(const guchar *)
{
}