diff --git a/library/include/DataIdentity.h b/library/include/DataIdentity.h index fd47429b9..c5ce0fb73 100644 --- a/library/include/DataIdentity.h +++ b/library/include/DataIdentity.h @@ -25,10 +25,11 @@ distribution. #pragma once #include -#include +#include +#include #include +#include #include -#include #include "DataDefs.h" @@ -570,6 +571,11 @@ namespace df static opaque_identity *get() { return &identity; } }; + template<> struct DFHACK_EXPORT identity_traits { + static opaque_identity identity; + static opaque_identity *get() { return &identity; } + }; + template<> struct DFHACK_EXPORT identity_traits { static ptr_string_identity identity; static ptr_string_identity *get() { return &identity; }