Re: [PATCH] poll: undef NOGDI

2014-09-30 Thread Marat Radchenko
On Sun, Sep 28, 2014 at 09:43:01AM -0700, Ben Pfaff wrote: > On Thu, Sep 18, 2014 at 04:53:37PM +0400, Marat Radchenko wrote: > > On MinGW-W64, MsgWaitForMultipleObjects is guarded with #ifndef NOGDI. > > > > -DNOGDI=1 prevents inclusion of tons of Windows headers, especially > > wingdi.h with wei

Re: [PATCH] poll: undef NOGDI

2014-09-28 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 04:53:37PM +0400, Marat Radchenko wrote: > On MinGW-W64, MsgWaitForMultipleObjects is guarded with #ifndef NOGDI. > > -DNOGDI=1 prevents inclusion of tons of Windows headers, especially > wingdi.h with weird #define ERROR 0 that has high chances to conflict > with internal

Re: [PATCH] poll: undef NOGDI

2014-09-28 Thread Marat Radchenko
Ping?

[PATCH] poll: undef NOGDI

2014-09-18 Thread Marat Radchenko
On MinGW-W64, MsgWaitForMultipleObjects is guarded with #ifndef NOGDI. -DNOGDI=1 prevents inclusion of tons of Windows headers, especially wingdi.h with weird #define ERROR 0 that has high chances to conflict with internal software defines. So, just #undef NOGDI. MinGW-W64 bug: http://sourceforge