How can I tell the preprocessor not to replace a specific macro?
The specific problem is the following: Windows header files define the GetMessage macro.
My C++ header files with my API have a GetMessage method. I do not want to rename my method. But when using the API on Windows, including windows.h replaces my GetMessage method call with GetMessageA.
#undef GetMessage
answer – Merchant