Re: Lua 5.3: file:seek() and files larger than 2 GB
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua 5.3: file:seek() and files larger than 2 GB
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2015年5月16日 10:27:00 -0300
> I tried to build Lua with and without -D_FILE_OFFSET_BITS=64, it did not
> help. Functions file:read() and file:write() work fine in this example:
FILE_OFFSET_BITS is a POSIX thing, I do not think it affects Windows.
> If I define _MSC_VER, it is utilized the 64-bit functions, MinGW can use
> them, but not by default.
Isn't this a solution?
-- Roberto