summaryrefslogtreecommitdiff
path: root/games/gnome-games/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'games/gnome-games/patches/patch-ae')
-rw-r--r--games/gnome-games/patches/patch-ae23
1 files changed, 23 insertions, 0 deletions
diff --git a/games/gnome-games/patches/patch-ae b/games/gnome-games/patches/patch-ae
new file mode 100644
index 00000000000..2a115d1387f
--- /dev/null
+++ b/games/gnome-games/patches/patch-ae
@@ -0,0 +1,23 @@
+$NetBSD: patch-ae,v 1.5 2007/09/20 00:05:58 wiz Exp $
+
+Yes, C++ needs prototypes. ;)
+
+--- blackjack/src/game.cpp.orig Tue Apr 12 11:50:34 2005
++++ blackjack/src/game.cpp Tue Jun 14 09:20:10 2005
+@@ -39,6 +39,7 @@
+ #include "hand.h"
+ #include "game.h"
+
++#include <cctype>
+ #include <iostream>
+ using namespace std;
+
+@@ -117,7 +118,7 @@ bj_game_file_to_name (const gchar* file)
+ *p = ' ';
+ for (p = buf; p = strchr (p, '-'), p && *p;)
+ *p = ' ';
+- buf[0] = toupper (buf[0]);
++ buf[0] = toupper ((unsigned char) buf[0]);
+ p = g_strdup (_(buf));
+
+ g_free (buf);