I have config file that I include in all my files there I have different enums but inside each enum there are same element names for example: config.h
enu
If you have the possibility to use C++11 I would recommend to use enum class feature to avoid collisions:
enum class GameObjectType
{
NINJA_PLAYER
};
enum class GameObjectTypeLocation
{
NONE,
MASSAGE_ALL, //this is for ComponentMadiator
NINJA_PLAYER
};
Edit: If you do not have this ability, then you will need to use two different namespaces for each enum.