aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2004-10-17 00:04:24 +0800
committerbland <bland@FreeBSD.org>2004-10-17 00:04:24 +0800
commit7ebf36fef9f5498f4db5659f07943c0b03ce0d97 (patch)
tree03e40e5788e7cb54609b0d789b6eb98059518cb0 /games
parent33363a91e9ad9dbf330f948a9ac330b3321fe62c (diff)
downloadfreebsd-ports-gnome-7ebf36fef9f5498f4db5659f07943c0b03ce0d97.tar.gz
freebsd-ports-gnome-7ebf36fef9f5498f4db5659f07943c0b03ce0d97.tar.zst
freebsd-ports-gnome-7ebf36fef9f5498f4db5659f07943c0b03ce0d97.zip
Fix C++ to avoid broken build on 5.x after gnome-- fix.
Diffstat (limited to 'games')
-rw-r--r--games/gnomoku/files/patch-ai.cc13
-rw-r--r--games/gnomoku/files/patch-mainwin.cc14
2 files changed, 27 insertions, 0 deletions
diff --git a/games/gnomoku/files/patch-ai.cc b/games/gnomoku/files/patch-ai.cc
new file mode 100644
index 000000000000..3d8bdd7e13a0
--- /dev/null
+++ b/games/gnomoku/files/patch-ai.cc
@@ -0,0 +1,13 @@
+--- ai.cc.orig Sat Oct 16 11:57:28 2004
++++ ai.cc Sat Oct 16 11:57:45 2004
+@@ -56,8 +56,8 @@
+ height = arows;
+ length = ((height+2) * (width+1) + 1);
+
+- board = new (int)[length];
+- score = new (int)[length];
++ board = new int[length];
++ score = new int[length];
+ for (int i=0; i<length; i++) {
+ board[i] = -1;
+ score[i] = -1;
diff --git a/games/gnomoku/files/patch-mainwin.cc b/games/gnomoku/files/patch-mainwin.cc
new file mode 100644
index 000000000000..79de28a5e9ea
--- /dev/null
+++ b/games/gnomoku/files/patch-mainwin.cc
@@ -0,0 +1,14 @@
+--- mainwin.cc.orig Sat Oct 16 11:58:08 2004
++++ mainwin.cc Sat Oct 16 11:58:36 2004
+@@ -93,9 +93,9 @@
+ // Table
+ Gtk::Table* table = new Gtk::Table (rows, cols, true);
+ Point *p;
+- tbl = new (Point**)[rows];
++ tbl = new Point**[rows];
+ for (int y=0; y<rows; y++) {
+- tbl[y] = new (Point*)[cols];
++ tbl[y] = new Point*[cols];
+ for (int x=0; x<cols; x++) {
+ p = new Point(y,x);
+ tbl[y][x] = p;