Skip to content

Commit e817607

Browse files
committed
archive_version_details is available from libArchive version 3.2.0
1 parent c4dd537 commit e817607

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/api/tesseractmain.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,12 @@ static void PrintVersionInfo() {
128128
printf(" Found OpenMP %d\n", _OPENMP);
129129
#endif
130130
#if defined(HAVE_LIBARCHIVE)
131-
printf(" Found %s", archive_version_details() );
132-
#endif
131+
# if ARCHIVE_VERSION_NUMBER >= 3002000
132+
printf(" Found %s", archive_version_details());
133+
# else
134+
printf(" Found %s", archive_version_string());
135+
# endif // ARCHIVE_VERSION_NUMBER
136+
#endif // HAVE_LIBARCHIVE
133137

134138
}
135139

0 commit comments

Comments
 (0)