a37bf24
From d45c06270576493e1537080fa43c1af667c4337a Mon Sep 17 00:00:00 2001
a37bf24
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
a37bf24
Date: Tue, 12 Oct 2021 14:15:17 +0200
a37bf24
Subject: [PATCH] Avoid multiple definitions of typeinfos
a37bf24
a37bf24
---
a37bf24
 XMPFiles/source/XMPFiles_Impl.cpp | 4 +++-
a37bf24
 1 file changed, 3 insertions(+), 1 deletion(-)
a37bf24
a37bf24
diff --git a/XMPFiles/source/XMPFiles_Impl.cpp b/XMPFiles/source/XMPFiles_Impl.cpp
a37bf24
index 2f918ac..ff45040 100644
a37bf24
--- a/XMPFiles/source/XMPFiles_Impl.cpp
a37bf24
+++ b/XMPFiles/source/XMPFiles_Impl.cpp
a37bf24
@@ -47,7 +47,9 @@ using namespace std;
a37bf24
 /// This file ...
a37bf24
 ///
a37bf24
 // =================================================================================================
a37bf24
-#include "public/include/XMP.incl_cpp"
a37bf24
+#if ! XMP_StaticBuild
a37bf24
+	#include "public/include/XMP.incl_cpp"
a37bf24
+#endif
a37bf24
 
a37bf24
 #if XMP_WinBuild
a37bf24
 	#pragma warning ( disable : 4290 )	// C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
a37bf24
-- 
a37bf24
2.33.0
a37bf24