2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-01 01:40:51 +00:00

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.
This commit is contained in:
Thorsten Schöning 2015-11-23 15:05:42 +01:00 committed by Jay Berkenbilt
parent 7c08aa4280
commit b3c08f4f8d

View File

@ -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));