From: Marat Radchenko Date: Sun, 30 Mar 2014 13:44:21 GMT Subject: [BUG] 'pread' : macro redefinition Message-ID: In-Reply-To: <20140319213556.2FC3D4062B@wince.sfo.corp.google.com> Stefan Zager chromium.org> writes: > > 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'