Re: [PATCH 03/12] MINGW: compat/mingw.h: do not attempt to redefine lseek on mingw-w64
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 28, 2014, 19:58 UTC
- Message-ID
- <535eb2f15505_3c9cdef2ec5@nysa.notmuch>
- In-Reply-To
- <535EB32B.4050209@web.de>
Torsten Bögershausen wrote:
Show 14 quoted lines
> On 2014-04-28 15.51, Marat Radchenko wrote: > > mingw-w64 has lseek defined in io.h. > [] > > #define off_t off64_t > > +#ifndef lseek > > #define lseek _lseeki64 > > +#endif > Is the commit message in line with the code? > > I would have expected something in this style: > > #if defined(__x86_64__) && ! defined(lseek)) > #include <io.h> > #endif
mingw-w64 provides a 32-bit compiler as well, and it needs this fix as well IIRC.
-- Felipe Contreras