* updated ktuberling (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / games / bsd-games / hotfix-gcc43.patch
blob57614c3f260c847da1acb35587014c1c53ab64fc
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../bsd-games/gcc43.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Maybe not really gcc-4.3, but even earlier version. In any case recent GCC's
18 do not like multiple parameters named equally:
20 dab/gamescreen.h:73: error: multiple parameters named 'p'
22 - Rene Rebe <rene@exactcode.de>
24 --- bsd-games-2.17/dab/gamescreen.h.vanilla 2008-08-12 11:34:50.000000000 +0200
25 +++ bsd-games-2.17/dab/gamescreen.h 2008-08-12 11:35:00.000000000 +0200
26 @@ -70,9 +70,9 @@
27 virtual void redraw(void) = 0; // Refresh
28 virtual int getinput(void) = 0; // Get user input
29 virtual void bell(void) = 0; // Beep
30 - virtual void score(size_t p, const PLAYER& p) = 0; // Post current score
31 - virtual void games(size_t p, const PLAYER& p) = 0; // Post games won
32 - virtual void total(size_t p, const PLAYER& p) = 0; // Post total score
33 + virtual void score(size_t p, const PLAYER& pl) = 0; // Post current score
34 + virtual void games(size_t p, const PLAYER& pl) = 0; // Post games won
35 + virtual void total(size_t p, const PLAYER& pl) = 0; // Post total score
36 virtual void ties(const PLAYER& p) = 0; // Post tie games