summaryrefslogtreecommitdiff
path: root/games-puzzle/construo/files/construo-0.2.2-gcc43.patch
blob: 48165ed21df0b825dc49fe549a2c82de62f2f8c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
--- a/command_line.cxx
+++ b/command_line.cxx
@@ -19,7 +19,9 @@
 
 #include <config.h>
 #include <iostream>
-#include <stdio.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
 #include "settings.hxx"
 #include "command_line.hxx"
 
--- a/config.hxx
+++ b/config.hxx
@@ -21,6 +21,7 @@
 #define CONFIG_HH
 
 #include <string>
+#include <cstdlib>
 
 class Config
 {
--- a/lisp_reader.cxx
+++ b/lisp_reader.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <cstring>
 #include "construo_error.hxx"
 #include "lisp_reader.hxx"
 
--- a/unix_system.cxx
+++ b/unix_system.cxx
@@ -17,8 +17,9 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-#include <stdio.h>
-#include <assert.h>
+#include <cstdio>
+#include <cassert>
+#include <cstring>
 #include <unistd.h>
 #include <sys/time.h>
 #include <time.h>
--- a/vector.cxx
+++ b/vector.cxx
@@ -16,8 +16,8 @@
 	totally replaced old CL_Vector with this code
 */
 
-#include <assert.h>
-#include <math.h>
+#include <cassert>
+#include <cmath>
 #include "vector.hxx"
 
 CL_Vector::CL_Vector(float x, float y, float z, float w)
--- a/world.cxx
+++ b/world.cxx
@@ -17,7 +17,8 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-#include <assert.h>
+#include <cassert>
+#include <cstring>
 #include <algorithm>
 #include "config.h"
 
--- a/x11_display.cxx
+++ b/x11_display.cxx
@@ -19,6 +19,7 @@
 
 #include <config.h>
 #include <iostream>
+#include <cstring>
 #include <X11/Xutil.h>
 #include <X11/cursorfont.h>
 #include <X11/keysym.h>