summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-03 20:23:57 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-03 20:23:57 +0000
commita3589fce071a170db3ab1dfe6323be7115bedc44 (patch)
treedea2775f5485040156f0bdfa349effe20c867d8d /sci-libs/neartree/files/2.1.4-gcc4.3.patch
parentCVector is an ANSI C implementation of dynamic arrays to provide a crude appr... (diff)
downloadhistorical-a3589fce071a170db3ab1dfe6323be7115bedc44.tar.gz
historical-a3589fce071a170db3ab1dfe6323be7115bedc44.tar.bz2
historical-a3589fce071a170db3ab1dfe6323be7115bedc44.zip
Function library efficiently solving the Nearest Neighbor Problem(known as the post office problem)
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/neartree/files/2.1.4-gcc4.3.patch')
-rw-r--r--sci-libs/neartree/files/2.1.4-gcc4.3.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-libs/neartree/files/2.1.4-gcc4.3.patch b/sci-libs/neartree/files/2.1.4-gcc4.3.patch
new file mode 100644
index 000000000000..527254ce57d3
--- /dev/null
+++ b/sci-libs/neartree/files/2.1.4-gcc4.3.patch
@@ -0,0 +1,20 @@
+--- CNearTreeTest.cpp 2009-06-08 04:54:29.000000000 +0200
++++ CNearTreeTest.cpp.new 2009-07-25 12:36:33.000000000 +0200
+@@ -47,6 +47,7 @@
+ #include <cmath>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+
+ #ifndef USE_LOCAL_HEADERS
+ #include <TNear.h>
+--- TNear.h 2009-06-08 04:54:29.000000000 +0200
++++ TNear.h.new 2009-07-25 12:39:09.000000000 +0200
+@@ -272,6 +272,7 @@
+ #define TRIANG(a,b,c) ( (((b)+(c))-(a) >= 0))
+ #endif
+
++#include <algorithm>
+
+ //=======================================================================
+ // CNearTree is the root class for the neartree. The actual data of the