Re: [PATCH 03/12] MINGW: compat/mingw.h: do not attempt to redefine lseek on mingw-w64
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Apr 28, 2014, 15:19 UTC
- Message-ID
- <CABPQNSYLba_sn4FAvon7DP6fkKrhHXxX5cawuwBW3LGoKuW7rQ@mail.gmail.com>
- In-Reply-To
- <20140428150924.GA19167@seldon>
On Mon, Apr 28, 2014 at 5:09 PM, Marat Radchenko <marat@slonopotamus.org> wrote:
Show 12 quoted lines
> On Mon, Apr 28, 2014 at 05:02:09PM +0200, Erik Faye-Lund wrote: >> msysGit has a declaration of it in io.h as well. But it's not a >> preprocessor-definition... Are you saying that it's a >> preprocessor-define in mingw-w64, that points to a 64-bit version? If >> so, looks good. > > MinGW is x86 only. > > MinGW-W64, a separate project, provides both x86 and x86_64. > > And here's relevant part of io.h from MingW-W64: > http://sourceforge.net/apps/trac/mingw-w64/browser/trunk/mingw-w64-headers/crt/io.h?rev=5437#L321
It looks like Line 335 is the real goodie: https://sourceforge.net/apps/trac/mingw-w64/browser/trunk/mingw-w64-headers/crt/io.h?rev=5437#L335
#define lseek lseek64
So yeah, looks good to me.