Skip to content

Commit e5237c1

Browse files
Fix build without any image magick enabled
1 parent 47d8dda commit e5237c1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.1.0) # Threads::Threads
22

33
project(fastfetch
4-
VERSION 1.3.0
4+
VERSION 1.3.1
55
LANGUAGES C
66
)
77

src/logo/image/image.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ FFLogoImageResult ffLogoPrintImageImpl(FFinstance* instance, FFLogoRequestData*
268268
return printSuccessful ? FF_LOGO_IMAGE_RESULT_SUCCESS : FF_LOGO_IMAGE_RESULT_RUN_ERROR;
269269
}
270270

271-
#endif //FF_HAVE_IMAGEMAGICK{6, 7}
272-
273271
static int getCacheFD(FFLogoRequestData* requestData, const char* fileName)
274272
{
275273
uint32_t cacheDirLength = requestData->cacheDir.length;
@@ -396,3 +394,11 @@ bool ffLogoPrintImageIfExists(FFinstance* instance, FFLogoType type)
396394
ffStrbufDestroy(&requestData.cacheDir);
397395
return result == FF_LOGO_IMAGE_RESULT_SUCCESS;
398396
}
397+
398+
#else //FF_HAVE_IMAGEMAGICK{6, 7}
399+
bool ffLogoPrintImageIfExists(FFinstance* instance, FFLogoType type)
400+
{
401+
FF_UNUSED(instance);
402+
return false;
403+
}
404+
#endif //FF_HAVE_IMAGEMAGICK{6, 7}

0 commit comments

Comments
 (0)