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

2GB file limit #2

Open
Ludilu opened this issue May 26, 2021 · 2 comments
Open

2GB file limit #2

Ludilu opened this issue May 26, 2021 · 2 comments

Comments

@Ludilu
Copy link

Ludilu commented May 26, 2021

Hi,
first of, thanks for sharing your lib, works well so far with one exception.

Do you have an idea how to work around the 2GB file limit or does it work on your end?
I tried to use _fseeki64 and _ftelli64 without success.

I am building on Windows 10 64bit using mingw-64.

Best regards

@Ludilu
Copy link
Author

Ludilu commented Jun 13, 2021

I was able to get it working.

Here are the thinks to do for future reference:

  • replace fseek with _fseeki64
  • replace ftell with _ftelli64
  • replace all long variables in this regard with __int64

Best regards

@lamest
Copy link

lamest commented Oct 9, 2021

@Ludilu why don't you make a PR

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

No branches or pull requests

2 participants