1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

build fix for mac os:

1) type_info visibility for CatapultAttack
2) using IObjectInfo::CArmyStructure in min_element : operator< should be const
This commit is contained in:
Haryaalcar 2014-06-26 01:23:12 +03:00
parent 955552488e
commit ce6940e272
2 changed files with 2 additions and 2 deletions

View File

@ -1516,7 +1516,7 @@ struct ObstaclesRemoved : public CPackForClient //3014
};
//FIXME: figure out why gcc fails to find type_info for this class with -fvisibility=hidden flag set
#ifdef __linux__
#if defined(__linux__) || defined(__APPLE__)
struct DLL_LINKAGE CatapultAttack : public CPackForClient //3015
#else
struct CatapultAttack : public CPackForClient //3015

View File

@ -65,7 +65,7 @@ public:
walkersStrength(0)
{}
bool operator <(const CArmyStructure & other)
bool operator <(const CArmyStructure & other) const
{
return this->totalStrength < other.totalStrength;
}