commit e5d4aadf54eb8015ffce14b4c5c3749c85dbc8bc
parent 92a28617b85f52c833eee5b770c47673dbbb68f0
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 4 Dec 2023 21:18:18 +0900
more seek offset type fixes to exiv2 extractor
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/plugins/exiv2_extractor.cc b/src/plugins/exiv2_extractor.cc
@@ -165,6 +165,13 @@ virtual int putb (Exiv2::byte data);
*/
virtual void transfer (Exiv2::BasicIo& src);
+
+#if EXIV2_TEST_VERSION (0,28,0)
+#define SEEK_OFFSET_TYPE int64_t
+#else
+#define SEEK_OFFSET_TYPE long
+#endif
+
/**
* Seek to the given offset.
*
@@ -172,7 +179,7 @@ virtual void transfer (Exiv2::BasicIo& src);
* @parma pos offset is relative to where?
* @return -1 on failure, 0 on success
*/
-virtual int seek (int64_t offset,
+virtual int seek (SEEK_OFFSET_TYPE offset,
Exiv2::BasicIo::Position pos);
/**
@@ -458,7 +465,7 @@ ExtractorIO::transfer (Exiv2::BasicIo& src)
* @return -1 on failure, 0 on success
*/
int
-ExtractorIO::seek (int64_t offset,
+ExtractorIO::seek (SEEK_OFFSET_TYPE offset,
Exiv2::BasicIo::Position pos)
{
int rel;