aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fiv-browser.c9
-rw-r--r--fiv-jpegcrop.c3
-rw-r--r--fiv.c1
-rw-r--r--xdg.c3
4 files changed, 13 insertions, 3 deletions
diff --git a/fiv-browser.c b/fiv-browser.c
index 3bda18e..867786a 100644
--- a/fiv-browser.c
+++ b/fiv-browser.c
@@ -17,9 +17,6 @@
#include "config.h"
-#include <math.h>
-#include <pixman.h>
-
#include <gtk/gtk.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
@@ -27,6 +24,10 @@
#ifdef GDK_WINDOWING_QUARTZ
#include <gdk/gdkquartz.h>
#endif // GDK_WINDOWING_QUARTZ
+#include <pixman.h>
+
+#include <math.h>
+#include <stdlib.h>
#include "fiv-browser.h"
#include "fiv-collection.h"
@@ -240,10 +241,12 @@ relayout(FivBrowser *self, int width)
pango_layout_set_wrap(label, PANGO_WRAP_WORD_CHAR);
pango_layout_set_ellipsize(label, PANGO_ELLIPSIZE_END);
+#if PANGO_VERSION_CHECK(1, 44, 0)
PangoAttrList *attrs = pango_attr_list_new();
pango_attr_list_insert(attrs, pango_attr_insert_hyphens_new(FALSE));
pango_layout_set_attributes(label, attrs);
pango_attr_list_unref (attrs);
+#endif
}
g_array_append_val(items, ((Item) {
diff --git a/fiv-jpegcrop.c b/fiv-jpegcrop.c
index f19ff74..d8bdb9c 100644
--- a/fiv-jpegcrop.c
+++ b/fiv-jpegcrop.c
@@ -18,6 +18,9 @@
#include <gtk/gtk.h>
#include <turbojpeg.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "config.h"
// --- Utilities ---------------------------------------------------------------
diff --git a/fiv.c b/fiv.c
index ce2505e..01843c4 100644
--- a/fiv.c
+++ b/fiv.c
@@ -27,6 +27,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#ifdef G_OS_WIN32
#include <io.h>
diff --git a/xdg.c b/xdg.c
index aeb8073..65ba7ab 100644
--- a/xdg.c
+++ b/xdg.c
@@ -17,6 +17,9 @@
#include <glib.h>
+#include <stdlib.h>
+#include <string.h>
+
/// Add `element` to the `output` set. `relation` is a map of sets of strings
/// defining is-a relations, and is traversed recursively.
static void