Skip to content

Commit ef56560

Browse files
victoryforceTurboGit
authored andcommitted
Add Lensfun version to compile options display
1 parent 83a1114 commit ef56560

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/common/darktable.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
#include <limits.h>
8989

9090
#include <exiv2/exv_conf.h> // for EXV_PACKAGE_VERSION
91+
#include <lensfun.h> // for lensfun library version macros
9192

9293
#ifdef HAVE_GRAPHICSMAGICK
9394
#include <magick/api.h>
@@ -726,6 +727,8 @@ static char *_get_version_string(void)
726727
{
727728
const char *exiv2_version = EXV_PACKAGE_VERSION "\n";
728729

730+
const char *liblensfun_version = g_strdup_printf("%d.%d.%d\n", LF_VERSION_MAJOR, LF_VERSION_MINOR, LF_VERSION_MICRO);
731+
729732
#ifdef HAVE_LIBRAW
730733
const char *libraw_version = LIBRAW_VERSION_STR "\n";
731734
#endif
@@ -746,14 +749,15 @@ char *version = g_strdup_printf(
746749
"Copyright (C) 2012-%s Johannes Hanika and other contributors.\n\n"
747750
"Compile options:\n"
748751
" Bit depth -> %zu bit\n"
749-
"%s%s%s%s%s%s%s\n"
752+
"%s%s%s%s%s%s%s%s%s\n"
750753
"See %s for detailed documentation.\n"
751754
"See %s to report bugs.\n",
752755
darktable_package_version,
753756
darktable_last_commit_year,
754757
CHAR_BIT * sizeof(void *),
755758

756759
" Exiv2 -> ", exiv2_version,
760+
" Lensfun -> ", liblensfun_version,
757761
#ifdef _DEBUG
758762
" Debug -> ENABLED\n"
759763
#else

0 commit comments

Comments
 (0)