File fix-compile.patch of Package digikam

From 8a12ffc60e2f2a59a60355824ba51370b0a20acd Mon Sep 17 00:00:00 2001
From: Maik Qualmann <metzpinguin@gmail.com>
Date: Sun, 7 Oct 2018 15:39:32 +0200
Subject: fix compile

---
 core/libs/dmetadata/metaengine_p.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'core/libs/dmetadata/metaengine_p.h')

diff --git a/core/libs/dmetadata/metaengine_p.h b/core/libs/dmetadata/metaengine_p.h
index bf75e4a..9e234f2 100644
--- a/core/libs/dmetadata/metaengine_p.h
+++ b/core/libs/dmetadata/metaengine_p.h
@@ -61,7 +61,6 @@
 #endif
 
 #include <exiv2/exv_conf.h>
-#include <exiv2/version.hpp>
 #include <exiv2/error.hpp>
 #include <exiv2/image.hpp>
 #include <exiv2/jpgimage.hpp>
@@ -98,6 +97,10 @@
 #   pragma GCC visibility pop
 #endif
 
+#if EXIV2_TEST_VERSION(0,27,0)
+    #include <exiv2/version.hpp>
+#endif
+
 // End of Exiv2 headers ------------------------------------------------------
 
 namespace Digikam
-- 
cgit v1.1

openSUSE Build Service is sponsored by