openbsd-ports/games/xevil/patches/patch-cmn_physical_cpp
landry a6b7b3244e Add a bunch of patch chunks shamelessly stolen from FreeBSD to allow this
to build (and even run!) on gcc4 archs. While here, precise licence marker
and bump PKGNAME.
2010-06-15 19:04:05 +00:00

28 lines
830 B
Plaintext

$OpenBSD: patch-cmn_physical_cpp,v 1.2 2010/06/15 19:04:05 landry Exp $
--- cmn/physical.cpp.orig Wed Jan 19 20:38:14 2000
+++ cmn/physical.cpp Tue Jun 15 20:47:33 2010
@@ -33,10 +33,12 @@
// Include Files
#include "xdata.h"
#include "physical.h"
-#include <iostream.h>
+#include <iostream>
+using namespace std;
+
#if X11
-#include <strstream.h>
+#include <strstream>
#endif
#if WIN32
#include <strstrea.h>
@@ -1844,7 +1846,7 @@ void* Moving::compute_key(Dir dir,int animNum,Boolean
}
// Use the pixmap resource id as the base.
- u_int cmnBitsId = (unsigned int)mc->pixmapBits[baseDir][animNum];
+ u_int cmnBitsId = (unsigned intptr_t)mc->pixmapBits[baseDir][animNum];
// It is ok to call OneTransform::compute_key() even if there is no
// transformation, will just return 0x0.