aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-07-03 08:16:56 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2022-07-03 08:16:56 +0200
commit7c59cc7edc138e66c20837107a7021676e65be29 (patch)
tree2a06df9f15f554857346507721cdf0d90644634c
parent5c2c719735f391746dd759c00b703ca540f700b1 (diff)
downloadnsxiv-7c59cc7edc138e66c20837107a7021676e65be29.tar.zst
fix build failure due to missing <stdio.h> (#337)
the following combination currently fails to build: $ make HAVE_LIBFONTS=0 HAVE_LIBWEBP=1 this is probably because one of the font library was including <stdio.h> Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/337 Reviewed-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr> Reviewed-by: TAAPArthur <taaparthur@noreply.codeberg.org> Co-authored-by: NRK <nrk@disroot.org> Co-committed-by: NRK <nrk@disroot.org>
-rw-r--r--image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/image.c b/image.c
index 05459cf..434b645 100644
--- a/image.c
+++ b/image.c
@@ -38,6 +38,7 @@ enum { DEF_GIF_DELAY = 75 };
#endif
#if HAVE_LIBWEBP
+#include <stdio.h>
#include <webp/decode.h>
#include <webp/demux.h>
enum { DEF_WEBP_DELAY = 75 };