summaryrefslogtreecommitdiff
path: root/graphics/hugin/files/patch-src-include-vigra_ext-PointMatching.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/hugin/files/patch-src-include-vigra_ext-PointMatching.h')
-rw-r--r--graphics/hugin/files/patch-src-include-vigra_ext-PointMatching.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/graphics/hugin/files/patch-src-include-vigra_ext-PointMatching.h b/graphics/hugin/files/patch-src-include-vigra_ext-PointMatching.h
new file mode 100644
index 000000000000..5da2b1713215
--- /dev/null
+++ b/graphics/hugin/files/patch-src-include-vigra_ext-PointMatching.h
@@ -0,0 +1,26 @@
+--- src/include/vigra_ext/PointMatching.h.orig Thu Aug 11 19:34:40 2005
++++ src/include/vigra_ext/PointMatching.h Thu Aug 11 19:48:12 2005
+@@ -33,7 +33,9 @@
+
+ // BAD: sgi stl extension
+ #if defined(__GNUC__)
++#if __GNUC__ > 2
+ #include <ext/algorithm>
++#endif
+ #elif defined(HAVE_STLport)
+ #include <stlport4/algorithm>
+ #endif
+@@ -193,8 +195,13 @@
+ {
+ std::vector<SIFTFeature> randomfeat(feat1.size()*m_percent/100);
+ #if defined(__GNUC__)
++#if __GNUC__ > 2
+ __gnu_cxx::random_sample(feat1.begin(), feat1.end(),
+ randomfeat.begin(), randomfeat.end());
++#else
++ std::random_sample(feat1.begin(), feat1.end(),
++ randomfeat.begin(), randomfeat.end());
++#endif
+ #elif defined(HAVE_STLport)
+ _STL::random_sample(feat1.begin(), feat1.end(),
+ randomfeat.begin(), randomfeat.end());