Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32: Fix to handle files larger than 4 GiB #417

Merged
merged 1 commit into from
Aug 27, 2023
Merged

win32: Fix to handle files larger than 4 GiB #417

merged 1 commit into from
Aug 27, 2023

Conversation

kiyolee
Copy link
Contributor

@kiyolee kiyolee commented Aug 21, 2023

Need VS2008 or later.
Redefine POSITION to be 64-bit.
Then effectively redirect stat() and lseek() calls to their corresponding 64-bit filesize capable calls, _stat64() and _lseeki64() respectively.
Define and use less_stat_t as the required 64-bit filesize capable stat buffer.
Define and use less_off_t as 64-bit filesize.

Need VS2008 or later.
Redefine POSITION to be 64-bit.
Then effectively redirect stat() and lseek() calls to their
corresponding 64-bit filesize capable calls, _stat64() and
_lseeki64() respectively.
Define and use less_stat_t as the required 64-bit filesize
capable stat buffer.
Define and use less_off_t as 64-bit filesize.
@gwsw gwsw merged commit 44d5c6b into gwsw:master Aug 27, 2023
@kiyolee kiyolee deleted the win-large-file branch August 27, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants