Image: fix compile error when building with chafa enabled

It should be `#include <chafa.h>` 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)
This commit is contained in:
李通洲
2022-12-19 20:41:33 +08:00
parent c7bec3d0c9
commit d4ec500b1b
+1 -1
View File
@@ -213,7 +213,7 @@ static bool printImageKitty(FFinstance* instance, FFLogoRequestData* requestData
}
#ifdef FF_HAVE_CHAFA
#include <chafa/chafa.h>
#include <chafa.h>
static bool printImageChafa(FFinstance* instance, FFLogoRequestData* requestData, const ImageData* imageData)
{
FF_LIBRARY_LOAD(chafa, &instance->config.libChafa, false, "libchafa" FF_LIBRARY_EXTENSION, 1)