[BUG] 'pread' : macro redefinition
- From
Marat Radchenko <marat@slonopotamus.org>
- Date
- Mar 30, 2014, 13:44 UTC
- Message-ID
- <loom.20140330T154129-838@post.gmane.org>
- In-Reply-To
- <20140319213556.2FC3D4062B@wince.sfo.corp.google.com>
Stefan Zager <szager <at> chromium.org> writes:
Show 8 quoted lines
> > This adds a Windows implementation of pread. > diff --git a/compat/mingw.h b/compat/mingw.h > index 08b83fe..377ba50 100644 > --- a/compat/mingw.h > +++ b/compat/mingw.h > +ssize_t mingw_pread(int fd, void *buf, size_t count, off64_t offset); > +#define pread mingw_pread
This result in tons of following warnings in MSVC=1 build:
git-compat-util.h(401) : warning C4005: 'pread' : macro redefinition mingw.h(181) : see previous definition of 'pread'