From ab75d2b61d58bcfc9c8c22d53b0b4cf2658b17c3 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 7 Jul 2023 12:00:54 +0200 Subject: Fix build under Cygwin --- fiv-browser.c | 9 ++++++--- fiv-jpegcrop.c | 3 +++ fiv.c | 1 + xdg.c | 3 +++ 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 -#include - #include #ifdef GDK_WINDOWING_X11 #include @@ -27,6 +24,10 @@ #ifdef GDK_WINDOWING_QUARTZ #include #endif // GDK_WINDOWING_QUARTZ +#include + +#include +#include #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 #include +#include +#include + #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 #include #include +#include #ifdef G_OS_WIN32 #include diff --git a/xdg.c b/xdg.c index aeb8073..65ba7ab 100644 --- a/xdg.c +++ b/xdg.c @@ -17,6 +17,9 @@ #include +#include +#include + /// Add `element` to the `output` set. `relation` is a map of sets of strings /// defining is-a relations, and is traversed recursively. static void -- cgit v1.2.3-70-g09d2