From e5bc4b32214f42cd5d25f5e6480a6f5d16bc65fc Mon Sep 17 00:00:00 2001 From: lethosor Date: Sun, 28 May 2023 02:50:39 -0400 Subject: [PATCH] Add identity for std::mutex --- library/include/DataIdentity.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; }