And where does Microsoft get away with
#define small char
You can't just add reserved words to the language and quiet开发者_如何学Pythonly include them in a platform SDK!
And more importantly how do I get rid of it!
edit : how to find what is being included where and by what in Visual Studio - Displaying the #include hierarchy for a C++ file in Visual Studio
You didn't say whether you wanted to get rid of the header include or of #define.
If you want to get rid of the include but don't know where, you could try to define the include flag in your header above where the SDK includes are listed.
#define RpcNdr.h //find the real flag in the header
#include "sdk.h"
If it is just the #define of 'small', then how about putting this in your headers right after the list of SDK includes.
#ifdef RpcNdr.h //find the real flag in the header
#undef small
This is part of the interface definition for the RPC NDR engine (for RPC and DCOM marshalling).
Well on my SDK it's described as "Definitions for stub data structures and prototypes of helper functions."
精彩评论