Root/supertux/patches/002-compilation-fixes.patch

1Index: supertux-0.1.3/src/badguy.cpp
2===================================================================
3--- supertux-0.1.3.orig/src/badguy.cpp
4+++ supertux-0.1.3/src/badguy.cpp
5@@ -21,6 +21,7 @@
6 // 02111-1307, USA.
7 
8 #include <iostream>
9+#include <cstdlib>
10 #include <math.h>
11 
12 #include "globals.h"
13Index: supertux-0.1.3/src/configfile.cpp
14===================================================================
15--- supertux-0.1.3.orig/src/configfile.cpp
16+++ supertux-0.1.3/src/configfile.cpp
17@@ -18,7 +18,7 @@
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 
20 #include <stdlib.h>
21-#include <string>
22+#include <cstring>
23 #include "configfile.h"
24 #include "setup.h"
25 #include "globals.h"
26Index: supertux-0.1.3/src/gameobjs.cpp
27===================================================================
28--- supertux-0.1.3.orig/src/gameobjs.cpp
29+++ supertux-0.1.3/src/gameobjs.cpp
30@@ -19,6 +19,7 @@
31 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
32 // 02111-1307, USA.
33 #include <algorithm>
34+#include <cstring>
35 #include "world.h"
36 #include "tile.h"
37 #include "gameloop.h"
38Index: supertux-0.1.3/src/particlesystem.cpp
39===================================================================
40--- supertux-0.1.3.orig/src/particlesystem.cpp
41+++ supertux-0.1.3/src/particlesystem.cpp
42@@ -20,6 +20,7 @@
43 #include "particlesystem.h"
44 
45 #include <iostream>
46+#include <cstdlib>
47 #include <math.h>
48 #include "globals.h"
49 #include "world.h"
50Index: supertux-0.1.3/src/sprite_manager.cpp
51===================================================================
52--- supertux-0.1.3.orig/src/sprite_manager.cpp
53+++ supertux-0.1.3/src/sprite_manager.cpp
54@@ -18,6 +18,7 @@
55 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
56 
57 #include <iostream>
58+#include <cstring>
59 #include "lispreader.h"
60 #include "sprite_manager.h"
61 
62Index: supertux-0.1.3/src/tile.cpp
63===================================================================
64--- supertux-0.1.3.orig/src/tile.cpp
65+++ supertux-0.1.3/src/tile.cpp
66@@ -21,6 +21,7 @@
67 #include "tile.h"
68 #include "scene.h"
69 #include "assert.h"
70+#include <cstring>
71 
72 TileManager* TileManager::instance_ = 0;
73 std::set<TileGroup>* TileManager::tilegroups_ = 0;
74Index: supertux-0.1.3/src/worldmap.cpp
75===================================================================
76--- supertux-0.1.3.orig/src/worldmap.cpp
77+++ supertux-0.1.3/src/worldmap.cpp
78@@ -20,6 +20,7 @@
79 #include <iostream>
80 #include <fstream>
81 #include <vector>
82+#include <cstring>
83 #include <assert.h>
84 #include <unistd.h>
85 #include "globals.h"
86

Archive Download this file



interactive