summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-04-13 18:31:52 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-04-13 18:31:52 +0000
commit550d749e72ca131932295d8c8a71ef25425f71b3 (patch)
tree6ae49b920dfcc067037438844c6bb4658d55d82e /dev-lang/gdl/files
parentremove old (diff)
downloadgentoo-2-550d749e72ca131932295d8c8a71ef25425f71b3.tar.gz
gentoo-2-550d749e72ca131932295d8c8a71ef25425f71b3.tar.bz2
gentoo-2-550d749e72ca131932295d8c8a71ef25425f71b3.zip
Added patch for plplot-5.9 support (fixes bug #217361).
(Portage version: 2.1.5_rc2)
Diffstat (limited to 'dev-lang/gdl/files')
-rw-r--r--dev-lang/gdl/files/gdl-0.9_pre6-plplot-5.9.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-lang/gdl/files/gdl-0.9_pre6-plplot-5.9.patch b/dev-lang/gdl/files/gdl-0.9_pre6-plplot-5.9.patch
new file mode 100644
index 000000000000..24e88eb0f2f8
--- /dev/null
+++ b/dev-lang/gdl/files/gdl-0.9_pre6-plplot-5.9.patch
@@ -0,0 +1,30 @@
+diff -Naur gdl-0.9pre6/src/gdlgstream.cpp gdl-0.9pre6.new/src/gdlgstream.cpp
+--- gdl-0.9pre6/src/gdlgstream.cpp 2007-10-29 19:10:47.000000000 -0400
++++ gdl-0.9pre6.new/src/gdlgstream.cpp 2008-04-13 12:45:19.000000000 -0400
+@@ -25,12 +25,12 @@
+
+ using namespace std;
+
+-void PLPlotAbortHandler(char *c)
++void PLPlotAbortHandler(const char *c)
+ {
+ cout << "PLPlot abort handler: " << c << endl;
+ }
+
+-int PLPlotExitHandler(char *c)
++int PLPlotExitHandler(const char *c)
+ {
+ cout << "PLPlot exit handler: " << c << endl;
+ return 0;
+diff -Naur gdl-0.9pre6/src/plot3d_nr.cpp gdl-0.9pre6.new/src/plot3d_nr.cpp
+--- gdl-0.9pre6/src/plot3d_nr.cpp 2007-10-29 19:10:47.000000000 -0400
++++ gdl-0.9pre6.new/src/plot3d_nr.cpp 2008-04-13 13:01:38.000000000 -0400
+@@ -217,7 +217,7 @@
+ zmin = (zmax_in > zmin_in) ? zmin_in: zmax_in;
+ zmax = (zmax_in > zmin_in) ? zmax_in: zmin_in;
+
+- pldtik(zmin, zmax, &tick, &nsub);
++ pldtik(zmin, zmax, &tick, &nsub, 0);
+ tp = tick * floor(zmin / tick) + tick;
+ pl3upv = 0;
+