diff options
author | joerg <joerg@pkgsrc.org> | 2015-04-18 20:42:39 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-04-18 20:42:39 +0000 |
commit | dd5a608148ba166789a366ac45223897267707ae (patch) | |
tree | 1862ea54f9fe2d27d2c0931e77458b3df84ea0af /games | |
parent | 4de546a882fa3008b00e31db6e0a162e48075147 (diff) | |
download | pkgsrc-dd5a608148ba166789a366ac45223897267707ae.tar.gz |
Add long long overloads to help ILP32 targets.
Diffstat (limited to 'games')
-rw-r--r-- | games/ivan/distinfo | 4 | ||||
-rw-r--r-- | games/ivan/patches/patch-ae | 41 |
2 files changed, 38 insertions, 7 deletions
diff --git a/games/ivan/distinfo b/games/ivan/distinfo index a668d2317c9..5be82a03588 100644 --- a/games/ivan/distinfo +++ b/games/ivan/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2014/02/09 17:09:03 wiedi Exp $ +$NetBSD: distinfo,v 1.10 2015/04/18 20:42:39 joerg Exp $ SHA1 (ivan-0.50.tar.gz) = e4c5ae2b9bdfd59a0ed3c87a504043df12b0f1a4 RMD160 (ivan-0.50.tar.gz) = 7e84340cd8fdfbdaaf7fde730fc0a76b137e2e91 @@ -19,7 +19,7 @@ SHA1 (patch-aa) = a52f3945a79e12cc72d30d9609c4bf390809a5bd SHA1 (patch-ab) = 63f215564ee0922d1daa5240b5a3b3b4afc5db24 SHA1 (patch-ac) = 42150fb33cbc0136bd702ab5cb26dcbc9d7c717c SHA1 (patch-ad) = 0cf6d0d9dff4482f091bff502b0ebd180734c631 -SHA1 (patch-ae) = 2b55ebd81f5136f5be8081f5dadf953a6370d199 +SHA1 (patch-ae) = 51325e0ac17af769b85891a3a8439d9daca8476a SHA1 (patch-af) = af3d8e16b1ee3e3e0d5efe2f301b7a5380880b14 SHA1 (patch-ag) = 58c92ccf5cad81c8030bb0e7f885e95b1ca4d555 SHA1 (patch-ah) = 56fa7992634cd699eeccbb6702f2ec499d149a21 diff --git a/games/ivan/patches/patch-ae b/games/ivan/patches/patch-ae index c4c249a59a5..2258f74e287 100644 --- a/games/ivan/patches/patch-ae +++ b/games/ivan/patches/patch-ae @@ -1,8 +1,8 @@ -$NetBSD: patch-ae,v 1.1 2008/07/27 21:44:47 dholland Exp $ +$NetBSD: patch-ae,v 1.2 2015/04/18 20:42:39 joerg Exp $ ---- FeLib/Include/save.h~ 2004-10-26 15:35:45.000000000 -0400 -+++ FeLib/Include/save.h 2008-07-27 16:24:25.000000000 -0400 -@@ -36,7 +36,7 @@ +--- FeLib/Include/save.h.orig 2004-10-26 19:35:45.000000000 +0000 ++++ FeLib/Include/save.h +@@ -36,7 +36,7 @@ class outputfile void Put(char What) { fputc(What, Buffer); } void Write(const char* Offset, long Size) { fwrite(Offset, 1, Size, Buffer); } @@ -11,7 +11,7 @@ $NetBSD: patch-ae,v 1.1 2008/07/27 21:44:47 dholland Exp $ void Close() { fclose(Buffer); } void Flush() { fflush(Buffer); } void ReOpen(); -@@ -58,7 +58,7 @@ +@@ -58,7 +58,7 @@ class inputfile rect ReadRect(); int Get() { return fgetc(Buffer); } void Read(char* Offset, long Size) { fread(Offset, 1, Size, Buffer); } @@ -20,3 +20,34 @@ $NetBSD: patch-ae,v 1.1 2008/07/27 21:44:47 dholland Exp $ truth Eof() { return feof(Buffer); } void ClearFlags() { clearerr(Buffer); } void SeekPosBegin(long Offset) { fseek(Buffer, Offset, SEEK_SET); } +@@ -220,6 +220,30 @@ inline inputfile& operator>>(inputfile& + return SaveFile; + } + ++inline outputfile& operator<<(outputfile& SaveFile, long long Value) ++{ ++ SaveFile.Write(reinterpret_cast<char*>(&Value), sizeof(Value)); ++ return SaveFile; ++} ++ ++inline inputfile& operator>>(inputfile& SaveFile, long long& Value) ++{ ++ SaveFile.Read(reinterpret_cast<char*>(&Value), sizeof(Value)); ++ return SaveFile; ++} ++ ++inline outputfile& operator<<(outputfile& SaveFile, unsigned long long Value) ++{ ++ SaveFile.Write(reinterpret_cast<char*>(&Value), sizeof(Value)); ++ return SaveFile; ++} ++ ++inline inputfile& operator>>(inputfile& SaveFile, unsigned long long& Value) ++{ ++ SaveFile.Read(reinterpret_cast<char*>(&Value), sizeof(Value)); ++ return SaveFile; ++} ++ + inline outputfile& operator<<(outputfile& SaveFile, unsigned Value) + { + SaveFile.Write(reinterpret_cast<char*>(&Value), sizeof(Value)); |