Commit b3c08f4f8d87acbe637c3ac73aa013d7d9b281a2
Committed by
Jay Berkenbilt
1 parent
7c08aa42
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.
Showing
1 changed file
with
2 additions
and
2 deletions
libqpdf/QUtil.cc
| ... | ... | @@ -164,7 +164,7 @@ QUtil::seek(FILE* stream, qpdf_offset_t offset, int whence) |
| 164 | 164 | #elif HAVE_FSEEKO64 |
| 165 | 165 | return fseeko64(stream, offset, whence); |
| 166 | 166 | #else |
| 167 | -# ifdef _MSC_VER | |
| 167 | +# if defined _MSC_VER || defined __BORLANDC__ | |
| 168 | 168 | return _fseeki64(stream, offset, whence); |
| 169 | 169 | # else |
| 170 | 170 | return fseek(stream, static_cast<long>(offset), whence); |
| ... | ... | @@ -180,7 +180,7 @@ QUtil::tell(FILE* stream) |
| 180 | 180 | #elif HAVE_FSEEKO64 |
| 181 | 181 | return static_cast<qpdf_offset_t>(ftello64(stream)); |
| 182 | 182 | #else |
| 183 | -# ifdef _MSC_VER | |
| 183 | +# if defined _MSC_VER || defined __BORLANDC__ | |
| 184 | 184 | return _ftelli64(stream); |
| 185 | 185 | # else |
| 186 | 186 | return static_cast<qpdf_offset_t>(ftell(stream)); | ... | ... |