#include <wtypes.h> int main(void) { }
fails with a lot of errors like:
c:\mingw\include\objidl.h:1008:46: error: unknown type name 'OLECHAR' STDMETHOD(QueryBlanket)(THIS_ PDWORD,PDWORD,OLECHAR**,PDWORD,PDWORD,RPC_AUTHZ_ HANDLE*,PDWORD*) PURE;
Including windows.h first fixes it but previously working software is affected.
Should have #include <wtypes.h> first line.
Last edit: Trent Gamblin 2013-09-03
The fix here is to move the inclusion of rpc.h in wtypes.h above the file guard.
Note that it is usually expected that windows.h is included before any other API header and I almost ping this as user land issue but I see that rpc.h includes windows.h already.
Diff:
Resolving the markdown for code issue.
[#2047]
Related
Issues: #2047