Blame SOURCES/exempi-e23c213-typeinfos.patch

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