aboutsummaryrefslogtreecommitdiffstats
path: root/games/pengpong/files
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-10-31 11:16:29 +0800
committeredwin <edwin@FreeBSD.org>2002-10-31 11:16:29 +0800
commit2ee755479a662187adfae34c7ecdae49f528b4e1 (patch)
treec1c14d766153ebf17a4c3e2d5cb4ab24990ea81d /games/pengpong/files
parentbaf8d3e210351d7f16784a0a6338a974daef9fc6 (diff)
downloadfreebsd-ports-gnome-2ee755479a662187adfae34c7ecdae49f528b4e1.tar.gz
freebsd-ports-gnome-2ee755479a662187adfae34c7ecdae49f528b4e1.tar.zst
freebsd-ports-gnome-2ee755479a662187adfae34c7ecdae49f528b4e1.zip
Make games/pengpong buildable again.
PR: ports/44455 (wrong subject) Submitted by: edwin@freebsd.org Approved by: pat@FreeBSD.org
Diffstat (limited to 'games/pengpong/files')
-rw-r--r--games/pengpong/files/patch-SFont.c9
-rw-r--r--games/pengpong/files/patch-files.h35
2 files changed, 44 insertions, 0 deletions
diff --git a/games/pengpong/files/patch-SFont.c b/games/pengpong/files/patch-SFont.c
new file mode 100644
index 000000000000..9f2f91ab1d22
--- /dev/null
+++ b/games/pengpong/files/patch-SFont.c
@@ -0,0 +1,9 @@
+--- SFont.c Thu Aug 30 04:00:45 2001
++++ SFont.c Fri Oct 25 21:07:58 2002
+@@ -1,6 +1,7 @@
+ #include <SDL.h>
+ #include "SFont.h"
+ #include <string.h>
++#include <stdlib.h>
+
+ SFont_FontInfo InternalFont;
diff --git a/games/pengpong/files/patch-files.h b/games/pengpong/files/patch-files.h
new file mode 100644
index 000000000000..af2f1ed228a6
--- /dev/null
+++ b/games/pengpong/files/patch-files.h
@@ -0,0 +1,35 @@
+--- files.h Fri Oct 25 21:22:08 2002
++++ files.h Fri Oct 25 21:21:48 2002
+@@ -1,4 +1,4 @@
+-#include <fstream.h>
++#include <fstream>
+
+ #ifdef __WIN32__
+ char file_path[50] = "C:\\Program Files\\Pengpong\\";
+@@ -17,7 +17,7 @@
+
+ void read_config_file()
+ {
+- ifstream a_file;
++ std::ifstream a_file;
+ char *temp_string1, *temp_string2;
+ char *temp_config_path;
+ temp_string1 = new char[50];
+@@ -75,7 +75,7 @@
+
+ void write_config_file()
+ {
+- ofstream b_file;
++ std::ofstream b_file;
+ char *temp_config_path;
+ char *temp_config_data;
+ temp_config_data = new char[80];
+@@ -90,7 +90,7 @@
+ strcpy(temp_config_path, config_file_path);
+ #endif
+
+- b_file.open(temp_config_path, ios::trunc);
++ b_file.open(temp_config_path, std::ios::trunc);
+
+ sprintf(temp_config_data, "player1_name:%s\n", adam.name);
+ b_file<<temp_config_data;