Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is RpcNdr.h

And where does Microsoft get away with

#define small char

You can't just add reserved words to the language and quietly 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

like image 900
Martin Beckett Avatar asked May 03 '11 18:05

Martin Beckett


1 Answers

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 
like image 117
Kelly S. French Avatar answered Sep 30 '22 12:09

Kelly S. French