I\'m trying to port an old library (that doesn\'t use namespaces as far as I can tell) to modern compilers. One of my targets can\'t tell the difference between System::TObj
I have used the following in the past while encapsulating a third party header file containing classes colliding with the code:
#ifdef Symbol
#undef Symbol
#define Symbol ThirdPartySymbol
#endif
#include
#undef Symbol
This way, "Symbol" in the header was prefixed by ThirdParty and this was not colliding with my code.