[poppler] [PATCH] Use fseeko64/ftello64 for MinGW32

Peter Breitenlohner peb at mppmu.mpg.de
Tue Jun 4 06:31:06 PDT 2013


Signed-off-by: Peter Breitenlohner <peb at mppmu.mpg.de>
---
 goo/gfile.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/goo/gfile.cc b/goo/gfile.cc
index 9d0699a..aaf62ee 100644
--- a/goo/gfile.cc
+++ b/goo/gfile.cc
@@ -555,6 +555,8 @@ int Gfseek(FILE *f, Goffset offset, int whence) {
   return fseeko(f, offset, whence);
 #elif HAVE_FSEEK64
   return fseek64(f, offset, whence);
+#elif defined(__MINGW32__)
+  return fseeko64(f, offset, whence);
 #elif _WIN32
   return _fseeki64(f, offset, whence);
 #else
@@ -567,6 +569,8 @@ Goffset Gftell(FILE *f) {
   return ftello(f);
 #elif HAVE_FSEEK64
   return ftell64(f);
+#elif defined(__MINGW32__)
+  return ftello64(f);
 #elif _WIN32
   return _ftelli64(f);
 #else
@@ -577,7 +581,7 @@ Goffset Gftell(FILE *f) {
 Goffset GoffsetMax() {
 #if HAVE_FSEEKO
   return (std::numeric_limits<off_t>::max)();
-#elif HAVE_FSEEK64
+#elif HAVE_FSEEK64 || defined(__MINGW32__)
   return (std::numeric_limits<off64_t>::max)();
 #elif _WIN32
   return (std::numeric_limits<__int64>::max)();
-- 
1.8.2.2



More information about the poppler mailing list