From 8b786b43446d3e50d3e0d906bc70ba65b70742bf Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 29 May 2023 01:12:35 -0400 Subject: [PATCH] Forward-declare types only used in DataIdentity.cpp --- library/DataIdentity.cpp | 2 ++ library/include/DataIdentity.h | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/library/DataIdentity.cpp b/library/DataIdentity.cpp index 0f85e5d95..03851520c 100644 --- a/library/DataIdentity.cpp +++ b/library/DataIdentity.cpp @@ -1,11 +1,13 @@ #include +#include #include #include #include #include #include "DataFuncs.h" +#include "DataIdentity.h" namespace df { #define NUMBER_IDENTITY_TRAITS(category, type, name) \ diff --git a/library/include/DataIdentity.h b/library/include/DataIdentity.h index 232b32108..be5466444 100644 --- a/library/include/DataIdentity.h +++ b/library/include/DataIdentity.h @@ -24,16 +24,19 @@ distribution. #pragma once -#include #include #include -#include #include #include #include #include "DataDefs.h" +namespace std { + class condition_variable; + class mutex; +}; + /* * Definitions of DFHack namespace structs used by generated headers. */