If I understand your problem correctly, you will need to find a way to determine which platform you are compiling on, because I do not know which platforms you are using. I cannot give any advice on this, however, perhaps it is possible for this with macros.
The solution to your problem will probably look something like this.
In C ++ 98 using type declaration
#ifdef __PLATFORM_SPECIFIC_DEFINE typedef btCollisionObjectWrapper btCollisionObject; #endif
In C ++ 11, with the alias declaration, this added the advantage that they can be used with templates, however in your case you can get rid of a simple typedef.
#ifdef __PLATFORM_SPECIFIC_DEFINE using btCollisionObject = btCollisionObjectWrapper; #endif
This will allow btCollisionObject be used as the class name for a platform using btCollisionObjectWrapper
Of course, you should replace __PLATFORM_SPECIFIC_DEFINE macro that is defined by the platform using btCollisionObjectWrapper .
source share