openbsd-ports/games/xevil/patches/patch-cmn_game_style_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
732 B
Plaintext

$OpenBSD: patch-cmn_game_style_cpp,v 1.2 2010/06/15 19:04:05 landry Exp $
--- cmn/game_style.cpp.orig Sat Mar 22 20:47:42 2003
+++ cmn/game_style.cpp Tue Jun 15 20:48:55 2010
@@ -29,12 +29,10 @@
// Include Files
#include "stdafx.h"
-extern "C" {
-#include <string.h>
-}
+#include <cstring>
#if X11
-#include <strstream.h>
+#include <strstream>
#endif
#if WIN32
@@ -2680,7 +2678,7 @@ int ZigZag::new_level_check(int,WorldP world,LocatorP
HumanP human = locator->get_human(n);
if (human) {
// previous depth
- int depthOld = (int)human->get_data();
+ intptr_t depthOld = (intptr_t)human->get_data();
Id id = human->get_id();
// Get physical for intelligence