So I have always used the following idiom to get around collisions when I must include two header files that define a type or function with the same name and I am unable to alter them for one reason or another:
// SomeFile.h
typedef signed char int8
// SomeOtherFile.h
typedef char int8
// some cpp file
#include "SomeFile.h"
namespace SomeNameSpace
{
#include SomeOtherFile.h
}
using SomeNameSpace::SomeFunction;
// ...
I've never put much thought into it, but is there a better way to workaround this issue other than what I propose above? It hasn't caused me any problems, but as I just had to do it again it got me wondering. Anyway, thanks in advance.