1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +02:00

Try to minimize dll linkage usage

This commit is contained in:
Ivan Savenko 2024-05-17 13:09:45 +00:00
parent 03054af949
commit 69e33e406d
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ public:
/// Main class for deserialization of classes from binary form
/// Effectively revesed version of BinarySerializer
class DLL_LINKAGE BinaryDeserializer : public CLoaderBase
class BinaryDeserializer : public CLoaderBase
{
template<typename Ser,typename T>
struct LoadIfStackInstance
@ -168,7 +168,7 @@ public:
return version >= what;
};
BinaryDeserializer(IBinaryReader * r);
DLL_LINKAGE BinaryDeserializer(IBinaryReader * r);
template<class T>
BinaryDeserializer & operator&(T & t)

View File

@ -35,7 +35,7 @@ public:
/// Primitives: copy memory into underlying stream (defined in CSaverBase)
/// Containers: custom overloaded method that decouples class into primitives
/// VCMI Classes: recursively serialize them via ClassName::serialize( BinarySerializer &, int version) call
class DLL_LINKAGE BinarySerializer : public CSaverBase
class BinarySerializer : public CSaverBase
{
template<typename Handler>
struct VariantVisitorSaver
@ -126,7 +126,7 @@ public:
return version >= what;
};
BinarySerializer(IBinaryWriter * w);
DLL_LINKAGE BinarySerializer(IBinaryWriter * w);
template<typename Base, typename Derived>
void registerType(const Base * b = nullptr, const Derived * d = nullptr)