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

Fixes compilation error "ResourceSet.h:33:21: error: function 'ResourceSet::ResourceSet()' definition is marked dllimport" when building with g++ 12.1.0

This commit is contained in:
Joakim Thorén 2023-12-30 00:29:31 +01:00
parent bb6179d05e
commit 8846fba1fc
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@
VCMI_LIB_NAMESPACE_BEGIN
ResourceSet::ResourceSet() = default;
ResourceSet::ResourceSet(const JsonNode & node)
{
for(auto i = 0; i < GameConstants::RESOURCE_QUANTITY; i++)

View File

@ -30,7 +30,7 @@ private:
public:
// read resources set from json. Format example: { "gold": 500, "wood":5 }
DLL_LINKAGE ResourceSet(const JsonNode & node);
DLL_LINKAGE ResourceSet() = default;
DLL_LINKAGE ResourceSet();
#define scalarOperator(OPSIGN) \