I get the following error with a Windows file when compiling winbase.h.
winbase.h
Not sure why I get a syntax error and the compiler shows many more:
Are you including directly?
You shouldn't - it expects to have some things defined/declared before it's processed. Specifically in this case the identifier ULONG_PTR which is declared as a typedef in intsafe.h.
ULONG_PTR
intsafe.h
Include .