summaryrefslogtreecommitdiff
path: root/games/pengpong/files/patch-files.h
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-10-31 03:16:29 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-10-31 03:16:29 +0000
commit188e5df6175f633fbd041eb3b85235f1e81627ee (patch)
tree6cd1cb49a722b44d4173d2708c8cb12b04b564fe /games/pengpong/files/patch-files.h
parentDisable the build when there's no libtelnet. (diff)
Make games/pengpong buildable again.
PR: ports/44455 (wrong subject) Submitted by: edwin@freebsd.org Approved by: pat@FreeBSD.org
Notes
Notes: svn path=/head/; revision=69185
Diffstat (limited to '')
-rw-r--r--games/pengpong/files/patch-files.h35
1 files changed, 35 insertions, 0 deletions
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;