summaryrefslogtreecommitdiff
path: root/games/xevil/files/patch-cmn__xetp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/xevil/files/patch-cmn__xetp.cpp')
-rw-r--r--games/xevil/files/patch-cmn__xetp.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/games/xevil/files/patch-cmn__xetp.cpp b/games/xevil/files/patch-cmn__xetp.cpp
new file mode 100644
index 000000000000..ab2a4f22859d
--- /dev/null
+++ b/games/xevil/files/patch-cmn__xetp.cpp
@@ -0,0 +1,50 @@
+--- cmn/xetp.cpp.orig 2012-05-27 06:52:30.000000000 +0900
++++ cmn/xetp.cpp 2012-05-27 06:53:11.000000000 +0900
+@@ -29,9 +29,9 @@
+
+ #include "stdafx.h"
+
+-#include <iostream.h>
++#include <iostream>
+ #if X11
+-#include <strstream.h>
++#include <sstream>
+ #endif
+ #if WIN32
+ #include <strstrea.h>
+@@ -53,6 +53,8 @@
+ #include "xetp.h"
+
+
++using namespace std;
++
+
+ void XETP::check_sizes() {
+ XETPBasic::check_sizes();
+@@ -159,7 +161,7 @@
+ for (n = 0; n < physicals.length(); n++) {
+ PhysicalP p = (PhysicalP)physicals.get(n);
+ // computing object_length twice, but who cares.
+- _send_object(out,p,turn,(TickType)tickTypes.get(n),
++ _send_object(out,p,turn,(long)tickTypes.get(n),
+ compute_object_length(p));
+ }
+
+@@ -274,7 +276,7 @@
+
+
+
+-void XETP::send_message(OutStreamP out,char *msg) {
++void XETP::send_message(OutStreamP out,const char *msg) {
+ assert(msg);
+ u_int len = strlen(msg);
+
+@@ -293,7 +295,7 @@
+
+
+
+-void XETP::send_arena_message(OutStreamP out,int time,char *msg) {
++void XETP::send_arena_message(OutStreamP out,int time,const char *msg) {
+ assert(msg);
+ u_int len = sizeof(int) + // time
+ strlen(msg); // string body