summaryrefslogtreecommitdiff
path: root/geography/qgis/patches/patch-src_core_spatialindex_include_Tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'geography/qgis/patches/patch-src_core_spatialindex_include_Tools.h')
-rw-r--r--geography/qgis/patches/patch-src_core_spatialindex_include_Tools.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/geography/qgis/patches/patch-src_core_spatialindex_include_Tools.h b/geography/qgis/patches/patch-src_core_spatialindex_include_Tools.h
new file mode 100644
index 00000000000..4ab1814ba91
--- /dev/null
+++ b/geography/qgis/patches/patch-src_core_spatialindex_include_Tools.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_core_spatialindex_include_Tools.h,v 1.1 2012/01/23 08:58:00 adam Exp $
+
+Fix building with Clang.
+
+--- src/core/spatialindex/include/Tools.h.orig 2011-06-07 07:42:08.000000000 +0000
++++ src/core/spatialindex/include/Tools.h
+@@ -407,7 +407,7 @@ namespace Tools
+ private:
+ std::map<std::string, Variant> m_propertySet;
+
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) || defined(__clang__)
+ // MSVC's friend function syntax differs slightly from everyone elses:
+ // don't seem to need to qualify function name.
+ friend std::ostream& operator<<(
+@@ -620,7 +620,7 @@ namespace Tools
+ unsigned long long* m_a;
+ unsigned long m_k;
+
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) || defined(__clang__)
+ // MSVC's friend function syntax differs slightly from everyone elses
+ // don't seem to need to qualify function name.
+ friend std::ostream& operator<<(