[PATCH v4] unistr: New modules for backward iteration in string.

2014-09-18 Thread Ben Pfaff
New module 'unistr/u8-mb-prev-uc'. * lib/unistr.in.h (u8_mb_prev_uc): New declaration. (u8_mb_prev_uc_aux): New declaration. * lib/unistr/u8-mb-prev-uc.c: New file. * lib/unistr/u8-mb-prev-uc-aux.c: New file. * tests/test-u8-mb-prev-uc.c: New file. * modules/u8-mb-prev-uc: New file. * modules/u8-mb

[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