Skip to content

Commit caf976b

Browse files
Fix building without chafa enabled
1 parent b3d8553 commit caf976b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/logo/image/image.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ FFLogoImageResult ffLogoPrintImageImpl(FFinstance* instance, FFLogoRequestData*
343343

344344
bool printSuccessful = false;
345345
if(requestData->type == FF_LOGO_TYPE_CHAFA)
346-
printSuccessful = printImageChafa(instance, requestData, &imageData);
346+
{
347+
#ifdef FF_HAVE_CHAFA
348+
printSuccessful = printImageChafa(instance, requestData, &imageData);
349+
#endif
350+
}
347351
else if(requestData->type == FF_LOGO_TYPE_KITTY)
348352
printSuccessful = printImageKitty(instance, requestData, &imageData);
349353
else if(requestData->type == FF_LOGO_TYPE_SIXEL)

0 commit comments

Comments
 (0)