If you compile a file which includes <cwchar> and add -ansi the compile fails at line 161 and 168. This comes from the fact that the functions swprintf and vswprintf are wrapped in the __STRICT_ANSI__ macro and excluded (in <cwchar.h>). It may be advisable to also wrap the affected lines in the <cwchar>. This bug was discovered while upgrading from 1.14 to 1.15.1 of the mingwrt.
Bug #2925669 is a duplicate of this bug.
https://sourceforge.net/tracker/?func=detail&aid=2925669&group_id=2435&atid=102435
This also duplicates bug #2373234
https://sourceforge.net/tracker/?func=detail&aid=2373234&group_id=2435&atid=102435
Please refer all follow-up comments to that original ticket.
[#1807]
Related
Issues:
#1807