updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / stepmania-beta / gcc-4.3.patch
blobad8c41b403ff7fb6902ad7969b542bcf404df768
1 --- StepMania-3.9-src-orig/src/ModelTypes.h 2004-08-19 10:29:16.000000000 +0200
2 +++ StepMania-3.9-src/src/ModelTypes.h.new 2008-04-04 03:48:01.000000000 +0200
3 @@ -6,6 +6,7 @@
4 #define MS_MAX_NAME 32
6 #include "RageTypes.h"
7 +#include <cstring>
9 struct msTriangle
11 --- StepMania-3.9-src-orig/src/crypto51/filters.h 2004-05-13 08:02:27.000000000 +0200
12 +++ StepMania-3.9-src/src/crypto51/filters.h.new 2008-04-04 03:50:33.000000000 +0200
13 @@ -7,6 +7,7 @@
14 #include "smartptr.h"
15 #include "queue.h"
16 #include "algparam.h"
17 +#include <memory>
19 NAMESPACE_BEGIN(CryptoPP)
21 --- StepMania-3.9-src-orig/src/crypto/CryptSH512.h 2004-06-08 07:30:52.000000000 +0200
22 +++ StepMania-3.9-src/src/crypto/CryptSH512.h.new 2008-04-04 03:50:24.000000000 +0200
23 @@ -1,6 +1,8 @@
24 #ifndef SSH_SHA512_H
25 #define SSH_SHA512_H
27 +#include <cstring>
29 typedef struct
31 unsigned long hi, lo;
32 --- StepMania-3.9-src-orig/src/crypto/CryptSHA.h 2004-06-08 07:30:52.000000000 +0200
33 +++ StepMania-3.9-src/src/crypto/CryptSHA.h.new 2008-04-04 03:53:07.000000000 +0200
34 @@ -1,6 +1,8 @@
35 #ifndef SSHSHA_H
36 #define SSHSHA_H
38 +#include <cstring>
40 typedef struct {
41 uint32_t h[5];
42 unsigned char block[64];
43 --- StepMania-3.9-src-orig/src/crypto/CryptRand.h 2004-06-08 07:30:52.000000000 +0200
44 +++ StepMania-3.9-src/src/crypto/CryptRand.h.new 2008-04-04 03:52:58.000000000 +0200
45 @@ -1,6 +1,8 @@
46 #ifndef SSH_RAND_H
47 #define SSH_RAND_H
49 +#include <cstring>
51 void random_init();
52 void random_add_noise( const CString &noise );
53 unsigned char random_byte();
54 --- StepMania-3.9-src-orig/src/crypto/CryptBn.h 2004-06-08 07:30:52.000000000 +0200
55 +++ StepMania-3.9-src/src/crypto/CryptBn.h.new 2008-04-04 03:52:51.000000000 +0200
56 @@ -1,6 +1,8 @@
57 #ifndef SSHBN_H
58 #define SSHBN_H
60 +#include <cstring>
62 #if defined __GNUC__ && defined __i386__
63 typedef unsigned long BignumInt;
64 typedef unsigned long long BignumDblInt;
65 --- StepMania-3.9-src-orig/src/NetworkSyncServer.h 2008-04-04 03:46:16.000000000 +0200
66 +++ StepMania-3.9-src/src/NetworkSyncServer.h.new 2008-04-04 03:52:43.000000000 +0200
67 @@ -7,6 +7,8 @@
68 #include "ezsockets.h"
69 #define NETMAXBUFFERSIZE 1020
71 +#include <cstring>
73 class LanPlayer
75 public:
76 --- StepMania-3.9-src-orig/src/RageSurface.h 2004-09-06 01:37:04.000000000 +0200
77 +++ StepMania-3.9-src/src/RageSurface.h.new 2008-04-04 03:52:33.000000000 +0200
78 @@ -3,6 +3,8 @@
79 #ifndef RAGE_SURFACE_H
80 #define RAGE_SURFACE_H
82 +#include <cstring>
84 /* XXX remove? */
85 struct RageSurfaceColor
87 --- StepMania-3.9-src-orig/src/RageSoundReader.h 2004-08-21 09:01:54.000000000 +0200
88 +++ StepMania-3.9-src/src/RageSoundReader.h.new 2008-04-04 03:52:25.000000000 +0200
89 @@ -5,6 +5,8 @@
90 #ifndef RAGE_SOUND_READER_H
91 #define RAGE_SOUND_READER_H
93 +#include <cstring>
95 class SoundReader
97 mutable string error;
98 --- StepMania-3.9-src-orig/src/RageFile.h 2004-07-24 05:01:23.000000000 +0200
99 +++ StepMania-3.9-src/src/RageFile.h.new 2008-04-04 03:52:18.000000000 +0200
100 @@ -5,6 +5,8 @@
102 #include "RageFileBasic.h"
104 +#include <cstring>
106 /* This is the high-level interface, which interfaces with RageFileObj implementations
107 * and RageFileManager. */
108 class RageFile: public RageFileBasic
109 --- StepMania-3.9-src-orig/src/archutils/Unix/LinuxThreadHelpers.h 2004-09-08 06:45:16.000000000 +0200
110 +++ StepMania-3.9-src/src/archutils/Unix/LinuxThreadHelpers.h.new 2008-04-04 03:52:08.000000000 +0200
111 @@ -1,6 +1,8 @@
112 #ifndef PID_THREAD_HELPERS_H
113 #define PID_THREAD_HELPERS_H
115 +#include <cstring>
117 RString ThreadsVersion();
119 /* Get the current thread's ThreadID. */
120 --- StepMania-3.9-src-orig/src/archutils/Unix/AssertionHandler.cpp 2004-06-16 05:32:46.000000000 +0200
121 +++ StepMania-3.9-src/src/archutils/Unix/AssertionHandler.cpp.new 2008-04-04 03:52:00.000000000 +0200
122 @@ -4,6 +4,7 @@
123 #include "archutils/Unix/EmergencyShutdown.h"
124 #include <unistd.h>
125 #include <assert.h>
126 +#include <cstring>
128 /* We can define this symbol to catch failed assert() calls. This is only used
129 * for library code that uses assert(); internally we always use ASSERT, which
130 --- StepMania-3.9-src-orig/src/arch/Sound/RageSoundDriver.h 2004-09-09 10:51:07.000000000 +0200
131 +++ StepMania-3.9-src/src/arch/Sound/RageSoundDriver.h.new 2008-04-04 03:51:53.000000000 +0200
132 @@ -1,6 +1,8 @@
133 #ifndef RAGE_SOUND_DRIVER
134 #define RAGE_SOUND_DRIVER
136 +#include <cstring>
138 class RageSoundBase;
139 class RageSoundDriver
141 --- StepMania-3.9-src-orig/src/PlayerOptions.h 2004-08-29 23:26:51.000000000 +0200
142 +++ StepMania-3.9-src/src/PlayerOptions.h.new 2008-04-04 03:51:45.000000000 +0200
143 @@ -3,6 +3,8 @@
144 #ifndef PLAYER_OPTIONS_H
145 #define PLAYER_OPTIONS_H
147 +#include <cstring>
149 class Song;
150 class Steps;
151 class Course;
152 --- StepMania-3.9-src-orig/src/NoteDataUtil.h 2004-08-29 23:26:51.000000000 +0200
153 +++ StepMania-3.9-src/src/NoteDataUtil.h.new 2008-04-04 03:51:37.000000000 +0200
154 @@ -6,5 +6,6 @@
155 #include "GameConstantsAndTypes.h" // for RadarCategory
156 #include "NoteTypes.h"
157 +#include <cstring>
159 struct PlayerOptions;
160 struct RadarValues;
161 --- StepMania-3.9-src-orig/src/Game.h 2004-09-06 04:48:04.000000000 +0200
162 +++ StepMania-3.9-src/src/Game.h.new 2008-04-04 03:51:29.000000000 +0200
163 @@ -7,6 +7,7 @@
164 #include "MenuInput.h"
165 #include "GameConstantsAndTypes.h"
166 #include "RageInputDevice.h"
167 +#include <cstring>
169 struct lua_State;
171 --- StepMania-3.9-src-orig/src/CodeDetector.h 2004-06-01 00:42:11.000000000 +0200
172 +++ StepMania-3.9-src/src/CodeDetector.h.new 2008-04-04 03:51:09.000000000 +0200
173 @@ -4,6 +4,7 @@
174 #define CODEDETECTOR_H
176 #include "GameInput.h"
177 +#include <cstring>
179 struct CodeItem
181 --- StepMania-3.9-src-orig/src/ScreenMiniMenu.h 2004-08-11 09:30:41.000000000 +0200
182 +++ StepMania-3.9-src/src/ScreenMiniMenu.h.new 2008-04-04 03:51:01.000000000 +0200
183 @@ -5,6 +5,7 @@
185 #include "ScreenOptions.h"
186 #include "GameConstantsAndTypes.h"
187 +#include <cstring>
189 typedef bool (*MenuRowUpdateEnabled)();
191 --- StepMania-3.9-src-orig/src/HighScore.h 2004-08-22 19:23:07.000000000 +0200
192 +++ StepMania-3.9-src/src/HighScore.h.new 2008-04-04 03:50:50.000000000 +0200
193 @@ -8,6 +8,7 @@
194 #include "RadarValues.h"
195 #include "DateTime.h"
196 #include "RageUtil_AutoPtr.h"
197 +#include <cstring>
199 class XNode;
201 --- StepMania-3.9-src-orig/src/RageUtil.h 2008-04-04 03:46:16.000000000 +0200
202 +++ StepMania-3.9-src/src/RageUtil.h.new 2008-04-04 03:50:41.000000000 +0200
203 @@ -4,6 +4,8 @@
204 #define RAGEUTIL_H
206 #include <map>
207 +#include <climits>
208 +#include <cstring>
209 #include <vector>
210 #include "Foreach.h"
211 class RageFileDriver;
212 --- StepMania-3.9-src-orig/src/crypto/CryptMD5.h 2004-06-08 07:30:52.000000000 +0200
213 +++ StepMania-3.9-src/src/crypto/CryptMD5.h.new 2008-04-04 03:50:16.000000000 +0200
214 @@ -1,6 +1,8 @@
215 #ifndef SSHMD5_H
216 #define SSHMD5_H
218 +#include <cstring>
220 typedef struct {
221 uint32_t h[4];
222 } MD5_Core_State;
223 --- StepMania-3.9-src-orig/src/ezsockets.h 2005-10-01 05:32:45.000000000 +0200
224 +++ StepMania-3.9-src/src/ezsockets.h.new 2008-04-04 03:50:08.000000000 +0200
225 @@ -18,6 +18,7 @@
226 #include <vector>
227 #include <fcntl.h>
228 #include <ctype.h>
229 +#include <cstring>
231 #if defined(_XBOX)
232 // Summary : WinsockX is bad, XTL is good.
233 --- StepMania-3.9-src-orig/src/RageSound.h 2004-08-21 09:01:54.000000000 +0200
234 +++ StepMania-3.9-src/src/RageSound.h.new 2008-04-04 03:49:44.000000000 +0200
235 @@ -6,6 +6,7 @@
236 #include "RageTimer.h"
237 #include "RageUtil_CircularBuffer.h"
238 #include "RageSoundPosMap.h"
239 +#include <cstring>
241 class SoundReader;
243 --- StepMania-3.9-src-orig/src/archutils/Unix/CrashHandler.h 2004-09-08 09:34:38.000000000 +0200
244 +++ StepMania-3.9-src/src/archutils/Unix/CrashHandler.h.new 2008-04-04 03:49:38.000000000 +0200
245 @@ -3,6 +3,8 @@
247 #include <csignal>
248 #include <ucontext.h>
249 +#include <cstring>
251 struct BacktraceContext;
253 namespace CrashHandler
254 --- StepMania-3.9-src-orig/src/archutils/Unix/SignalHandler.h 2004-05-15 10:27:42.000000000 +0200
255 +++ StepMania-3.9-src/src/archutils/Unix/SignalHandler.h.new 2008-04-04 03:49:30.000000000 +0200
256 @@ -3,6 +3,7 @@
258 #include <csignal>
259 #include <ucontext.h>
260 +#include <cstring>
262 class SaveSignals
264 --- StepMania-3.9-src-orig/src/arch/Lights/LightsDriver.h 2004-07-07 22:11:30.000000000 +0200
265 +++ StepMania-3.9-src/src/arch/Lights/LightsDriver.h.new 2008-04-04 03:49:22.000000000 +0200
266 @@ -4,6 +4,7 @@
267 #define LightsDriver_H
269 #include "LightsManager.h"
270 +#include <cstring>
272 struct LightsState;
274 --- StepMania-3.9-src-orig/src/NotesLoader.h 2004-09-13 10:02:16.000000000 +0200
275 +++ StepMania-3.9-src/src/NotesLoader.h.new 2008-04-04 03:49:05.000000000 +0200
276 @@ -3,6 +3,7 @@
278 #include "RageUtil.h"
279 #include <set>
280 +#include <cstring>
282 class Song;
284 --- StepMania-3.9-src-orig/src/LyricsLoader.h 2004-06-01 00:42:12.000000000 +0200
285 +++ StepMania-3.9-src/src/LyricsLoader.h.new 2008-04-04 03:48:52.000000000 +0200
286 @@ -3,6 +3,8 @@
287 #ifndef LYRICS_LOADER_H
288 #define LYRICS_LOADER_H
290 +#include <cstring>
292 class Song;
294 class LyricsLoader
295 --- StepMania-3.9-src-orig/src/DateTime.h 2004-10-13 04:43:19.000000000 +0200
296 +++ StepMania-3.9-src/src/DateTime.h.new 2008-04-04 03:48:41.000000000 +0200
297 @@ -2,6 +2,7 @@
298 #define DATE_TIME_H
300 #include <ctime>
301 +#include <cstring>
303 const int NUM_LAST_DAYS = 7;
304 const int NUM_LAST_WEEKS = 52;
305 --- StepMania-3.9-src-orig/src/InputFilter.h 2004-09-10 00:14:33.000000000 +0200
306 +++ StepMania-3.9-src/src/InputFilter.h.new 2008-04-04 04:23:14.000000000 +0200
307 @@ -4,6 +4,7 @@
308 #define INPUTFILTER_H
310 #include "RageInputDevice.h"
311 +#include <cstring>
313 enum InputEventType
315 --- StepMania-3.9-src-orig/src/EnumHelper.h 2004-09-10 00:14:33.000000000 +0200
316 +++ StepMania-3.9-src/src/EnumHelper.h.new 2008-04-04 04:23:14.000000000 +0200
317 @@ -1,6 +1,8 @@
318 #ifndef EnumHelper_H
319 #define EnumHelper_H
321 +#include <memory>
324 * Safely add an integer to an enum.
326 --- StepMania-3.9-src-orig/src/LuaBinding.h 2004-09-10 00:14:33.000000000 +0200
327 +++ StepMania-3.9-src/src/LuaBinding.h.new 2008-04-04 04:23:14.000000000 +0200
328 @@ -4,6 +4,7 @@
329 #define LuaBinding_H
331 #include "LuaManager.h"
332 +#include <cstring>
333 class LuaReference;
335 namespace LuaBinding
336 --- StepMania-3.9-src-orig/src/archutils/Unix/CrashHandlerInternal.cpp 2004-09-10 00:14:33.000000000 +0200
337 +++ StepMania-3.9-src/src/archutils/Unix/CrashHandlerInternal.cpp.new 2008-04-04 04:23:14.000000000 +0200
338 @@ -2,6 +2,7 @@
339 #include "CrashHandlerInternal.h"
341 #include <csignal>
342 +#include <cstring>
344 const char *itoa( unsigned n )