[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libextractor] branch master updated: more seek offset type fixes to exi
From: |
gnunet |
Subject: |
[libextractor] branch master updated: more seek offset type fixes to exiv2 extractor |
Date: |
Mon, 04 Dec 2023 13:18:26 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libextractor.
The following commit(s) were added to refs/heads/master by this push:
new e5d4aad more seek offset type fixes to exiv2 extractor
e5d4aad is described below
commit e5d4aadf54eb8015ffce14b4c5c3749c85dbc8bc
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Mon Dec 4 21:18:18 2023 +0900
more seek offset type fixes to exiv2 extractor
---
src/plugins/exiv2_extractor.cc | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/plugins/exiv2_extractor.cc b/src/plugins/exiv2_extractor.cc
index a82ba3f..c21e1cb 100644
--- 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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libextractor] branch master updated: more seek offset type fixes to exiv2 extractor,
gnunet <=