aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QUtil.cc
diff options
context:
space:
mode:
authorThorsten Schöning <tschoening@users.noreply.github.com>2015-11-23 15:05:42 +0100
committerJay Berkenbilt <ejb@ql.org>2016-01-24 18:07:20 +0100
commitb3c08f4f8d87acbe637c3ac73aa013d7d9b281a2 (patch)
treebe1ddcca4a56723b918e4097d1bdee662b87755f /libqpdf/QUtil.cc
parent7c08aa42808c4167f51570f6a99dc8e4dfda6ccf (diff)
downloadqpdf-b3c08f4f8d87acbe637c3ac73aa013d7d9b281a2.tar.zst
C++-Builder supports 64 Bit file functions
The 64 Bit file functions are supported by C++-Builder as well and need to be used, else fseek will error out on larger files than 4 GB like used in the large file test.
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r--libqpdf/QUtil.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc
index 11a3411c..f451290e 100644
--- a/libqpdf/QUtil.cc
+++ b/libqpdf/QUtil.cc
@@ -164,7 +164,7 @@ QUtil::seek(FILE* stream, qpdf_offset_t offset, int whence)
#elif HAVE_FSEEKO64
return fseeko64(stream, offset, whence);
#else
-# ifdef _MSC_VER
+# if defined _MSC_VER || defined __BORLANDC__
return _fseeki64(stream, offset, whence);
# else
return fseek(stream, static_cast<long>(offset), whence);
@@ -180,7 +180,7 @@ QUtil::tell(FILE* stream)
#elif HAVE_FSEEKO64
return static_cast<qpdf_offset_t>(ftello64(stream));
#else
-# ifdef _MSC_VER
+# if defined _MSC_VER || defined __BORLANDC__
return _ftelli64(stream);
# else
return static_cast<qpdf_offset_t>(ftell(stream));