From d4ec500b1bea4f31db41d2f80bd44a23f17ae4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 19 Dec 2022 20:41:33 +0800 Subject: [PATCH] Image: fix compile error when building with chafa enabled It should be `#include ` because `pkg-config chafa --cflags` prints `-I/usr/include/chafa` even in Linux. It was working because `chafa` folder was installed in the standard `/usr/include` directory, but it was not the case for macOS (brew) --- src/logo/image/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logo/image/image.c b/src/logo/image/image.c index 87523dc95..dec706ffe 100644 --- a/src/logo/image/image.c +++ b/src/logo/image/image.c @@ -213,7 +213,7 @@ static bool printImageKitty(FFinstance* instance, FFLogoRequestData* requestData } #ifdef FF_HAVE_CHAFA -#include +#include static bool printImageChafa(FFinstance* instance, FFLogoRequestData* requestData, const ImageData* imageData) { FF_LIBRARY_LOAD(chafa, &instance->config.libChafa, false, "libchafa" FF_LIBRARY_EXTENSION, 1)