So, today I was writing a DirectX application (thus being forced to include windows stuff). Everything was working as expected, when suddenly, from nowhere, a terrifying error appeared near variable declaration:
menu.cpp|53|error: expected unqualified-id before '=' token|Code:Com::FontPtr small = Dxlib::Text::Font(Target.GetDevice(), "Courier New", 14, true);
I had absolutely NO idea what could be wrong until I traced possible declaration of 'small' identifier and found this:
Header: rpcndr.h (windows one)
Code: #define small char
I am posting this as a warning for anyone who attempts to touch win headers. There are other, equally stupid defines.