Sort headers using clang-tidy
[geeqie.git] / src / image-load-libraw.cc
index ab14e0f..d144e61 100644 (file)
  * 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
 {
@@ -47,7 +53,7 @@ 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;
 
@@ -135,7 +141,7 @@ guchar *libraw_get_preview(ImageLoader *il, guint *data_len)
 
 #else /* !define HAVE_RAW */
 
-void libraw_free_preview(guchar *)
+void libraw_free_preview(const guchar *)
 {
 }