On 21/12/2022 16:45, LIU Hao wrote:
If you define `WIN32_LEAN_AND_MEAN` (either `#define` it or pass `-DWIN32_LEAN_AND_MEAN` to GCC) before inclusion of <windows.h>, then the error will go away. This seems to be yet another reason why `WIN32_LEAN_AND_MEAN` should be preferred.

...which only works if you don't need to use any COM interfaces. `#include <unknwn.h>` will bring back the `interface` macro.



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to