mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-02 11:58:25 +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:
parent
7c08aa4280
commit
b3c08f4f8d
@ -164,7 +164,7 @@ QUtil::seek(FILE* stream, qpdf_offset_t offset, int whence)
|
|||||||
#elif HAVE_FSEEKO64
|
#elif HAVE_FSEEKO64
|
||||||
return fseeko64(stream, offset, whence);
|
return fseeko64(stream, offset, whence);
|
||||||
#else
|
#else
|
||||||
# ifdef _MSC_VER
|
# if defined _MSC_VER || defined __BORLANDC__
|
||||||
return _fseeki64(stream, offset, whence);
|
return _fseeki64(stream, offset, whence);
|
||||||
# else
|
# else
|
||||||
return fseek(stream, static_cast<long>(offset), whence);
|
return fseek(stream, static_cast<long>(offset), whence);
|
||||||
@ -180,7 +180,7 @@ QUtil::tell(FILE* stream)
|
|||||||
#elif HAVE_FSEEKO64
|
#elif HAVE_FSEEKO64
|
||||||
return static_cast<qpdf_offset_t>(ftello64(stream));
|
return static_cast<qpdf_offset_t>(ftello64(stream));
|
||||||
#else
|
#else
|
||||||
# ifdef _MSC_VER
|
# if defined _MSC_VER || defined __BORLANDC__
|
||||||
return _ftelli64(stream);
|
return _ftelli64(stream);
|
||||||
# else
|
# else
|
||||||
return static_cast<qpdf_offset_t>(ftell(stream));
|
return static_cast<qpdf_offset_t>(ftell(stream));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user