From e817607280e9d4658f1d74ac3c21b4dea4443a9d Mon Sep 17 00:00:00 2001 From: zdenop Date: Sun, 10 Mar 2019 22:57:48 +0100 Subject: [PATCH] archive_version_details is available from libArchive version 3.2.0 --- src/api/tesseractmain.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/tesseractmain.cpp b/src/api/tesseractmain.cpp index d7d0f9570f..4e707c7d2d 100644 --- a/src/api/tesseractmain.cpp +++ b/src/api/tesseractmain.cpp @@ -128,8 +128,12 @@ static void PrintVersionInfo() { printf(" Found OpenMP %d\n", _OPENMP); #endif #if defined(HAVE_LIBARCHIVE) - printf(" Found %s", archive_version_details() ); -#endif +# if ARCHIVE_VERSION_NUMBER >= 3002000 + printf(" Found %s", archive_version_details()); +# else + printf(" Found %s", archive_version_string()); +# endif // ARCHIVE_VERSION_NUMBER +#endif // HAVE_LIBARCHIVE }