SyntaxFix
Write A Post
Hire A Developer
Questions
Another cause of this can be including a header that depends on windows.h, before including windows.h.
windows.h
In my case I included xinput.h before windows.h and got this error. Swapping the order solved the problem.
xinput.h