Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/criticalmass/files: criticalmass-1.0.0-gcc43.patch
Date: Fri, 18 Apr 2008 19:34:52
Message-Id: E1JmwME-0000IW-3h@stork.gentoo.org
1 mr_bones_ 08/04/18 19:34:50
2
3 Added: criticalmass-1.0.0-gcc43.patch
4 Log:
5 add patch for building with gcc4.3 submitted by Peter Alfredsen via bug #218299
6
7 Revision Changes Path
8 1.1 games-arcade/criticalmass/files/criticalmass-1.0.0-gcc43.patch
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/criticalmass/files/criticalmass-1.0.0-gcc43.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/criticalmass/files/criticalmass-1.0.0-gcc43.patch?rev=1.1&content-type=text/plain
12
13 Index: criticalmass-1.0.0-gcc43.patch
14 ===================================================================
15 --- CriticalMass-1.0.0.orig/tinyxml/tinyxml.cpp 2003-03-03 03:34:58.000000000 +0100
16 +++ CriticalMass-1.0.0/tinyxml/tinyxml.cpp 2008-04-18 19:40:35.000000000 +0200
17 @@ -21,10 +21,12 @@
18 distribution.
19 */
20
21 #include "tinyxml.h"
22
23 +#include <cstring>
24 +
25
26 TiXmlNode::TiXmlNode( NodeType _type )
27 {
28 parent = 0;
29 type = _type;
30 --- CriticalMass-1.0.0.orig/tinyxml/tinyxml.h 2003-03-03 03:34:58.000000000 +0100
31 +++ CriticalMass-1.0.0/tinyxml/tinyxml.h 2008-04-18 19:40:35.000000000 +0200
32 @@ -28,10 +28,11 @@
33 #ifdef _MSC_VER
34 #pragma warning( disable : 4530 )
35 #pragma warning( disable : 4786 )
36 #endif
37
38 +#include <cstdlib>
39 #include <string>
40 #include <stdio.h>
41 #include <assert.h>
42
43 class TiXmlDocument;
44 --- CriticalMass-1.0.0.orig/tinyxml/tinyxmlparser.cpp 2003-03-03 03:34:58.000000000 +0100
45 +++ CriticalMass-1.0.0/tinyxml/tinyxmlparser.cpp 2008-04-18 19:40:35.000000000 +0200
46 @@ -23,10 +23,12 @@
47
48
49 #include "tinyxml.h"
50 #include <ctype.h>
51
52 +#include <cstring>
53 +
54 const char* TiXmlBase::SkipWhiteSpace( const char* p )
55 {
56 while ( p && *p &&
57 ( isspace( *p ) || *p == '\n' || *p == '\r' ) )
58 p++;
59 --- CriticalMass-1.0.0.orig/utils/ResourceManager.cpp 2005-01-02 03:59:29.000000000 +0100
60 +++ CriticalMass-1.0.0/utils/ResourceManager.cpp 2008-04-18 19:40:35.000000000 +0200
61 @@ -20,10 +20,12 @@
62 #include <ResourceManager.hpp>
63 #include <FindHash.hpp>
64 #include <Endian.hpp>
65 #include <WalkDirectory.hpp>
66
67 +#include <cstring>
68 +
69 #ifdef WIN32
70 const char PATH_SEPERATOR = '\\';
71 #else
72 const char PATH_SEPERATOR = '/';
73 #endif
74 --- CriticalMass-1.0.0.orig/utils/Value.hpp 2004-12-18 03:41:24.000000000 +0100
75 +++ CriticalMass-1.0.0/utils/Value.hpp 2008-04-18 19:40:35.000000000 +0200
76 @@ -13,10 +13,11 @@
77 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
78 //
79 #ifndef _Value_hpp_
80 #define _Value_hpp_
81
82 +#include <cstdlib>
83 #include <stdio.h>
84 #include <string>
85
86 #include <Trace.hpp>
87
88 --- CriticalMass-1.0.0.orig/utils/zStreamBufferImplZLib.cpp 2005-07-31 22:06:14.000000000 +0200
89 +++ CriticalMass-1.0.0/utils/zStreamBufferImplZLib.cpp 2008-04-18 19:40:35.000000000 +0200
90 @@ -10,10 +10,11 @@
91 //
92 // This program is distributed in the hope that it will be useful, but WITHOUT
93 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
94 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
95 //
96 +#include <cstdlib>
97 #include <Trace.hpp>
98 #include <zStreamBufferImplZLib.hpp>
99
100 bool ziStreamBufferImplZLib::init( void)
101 {
102 --- CriticalMass-1.0.0.orig/utils/zStream.cpp 2005-07-31 22:06:14.000000000 +0200
103 +++ CriticalMass-1.0.0/utils/zStream.cpp 2008-04-18 19:40:35.000000000 +0200
104 @@ -10,10 +10,11 @@
105 //
106 // This program is distributed in the hope that it will be useful, but WITHOUT
107 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
108 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
109 //
110 +#include <cstdlib>
111 #include <Trace.hpp>
112 #include <Endian.hpp>
113 #include <zStream.hpp>
114 #include <zStreamBufferImplLZMA.hpp>
115 #include <zStreamBufferImplZLib.hpp>
116
117
118
119 --
120 gentoo-commits@l.g.o mailing list