summaryrefslogtreecommitdiff
path: root/games/briquolo/patches/gcc-fixes.patch
blob: 161b6329d21c3268b9700471f155c852a763ce49 (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
83
84
85
86
87
88
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_gcc-4.3-fixes.dpatch by  <ansgar@43-1.org>
## Refreshed by  <brad@brad-smith.co.uk>
##
## DP: Fix compliation with gcc-4.3

@DPATCH@

diff -Naur briquolo-0.5.7.orig/src/Constante.cpp briquolo-0.5.7/src/Constante.cpp
--- briquolo-0.5.7.orig/src/Constante.cpp	2008-03-22 09:40:33.000000000 +0000
+++ briquolo-0.5.7/src/Constante.cpp	2008-03-29 18:47:44.000000000 +0000
@@ -20,6 +20,7 @@
  *
  *****************************************************************************/
 #include "Constante.h"
+#include <cstdlib>
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
diff -Naur briquolo-0.5.7.orig/src/I18n.cpp briquolo-0.5.7/src/I18n.cpp
--- briquolo-0.5.7.orig/src/I18n.cpp	2006-03-07 20:31:24.000000000 +0000
+++ briquolo-0.5.7/src/I18n.cpp	2008-03-29 18:47:44.000000000 +0000
@@ -22,6 +22,7 @@
 #include "I18n.h"
 #include <iostream>
 #include "Constante.h"
+#include <cstdlib>
 
 #ifdef WIN32
   #include <windows.h>
diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_EnsembleObjet.cpp briquolo-0.5.7/src/MOGL/MOGL_EnsembleObjet.cpp
--- briquolo-0.5.7.orig/src/MOGL/MOGL_EnsembleObjet.cpp	2008-03-24 13:12:36.000000000 +0000
+++ briquolo-0.5.7/src/MOGL/MOGL_EnsembleObjet.cpp	2008-03-29 18:47:44.000000000 +0000
@@ -24,7 +24,8 @@
 #include "MOGL_Armature.h"
 #include "MOGL_Peau.h"
 //#include
-#include <stdio.h>
+#include <cstdio>
+#include <cstring>
 
 //#include <mmsystem.h>
 
diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.cpp briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.cpp
--- briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.cpp	2008-03-24 12:56:13.000000000 +0000
+++ briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.cpp	2008-03-29 18:47:44.000000000 +0000
@@ -21,6 +21,7 @@
  *****************************************************************************/
 #include "../I18n.h"
 #include "MOGL_GestionnaireObjet.h"
+#include <cstring>
 
 bool MOGL_GestionnaireObjet::ChargerObjetASCTriangle(const char * p_NomFichier, const MOGL_GestionnaireTexture & p_GM,
                                                      MOGL_Objet & p_Objet)
diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.h briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.h
--- briquolo-0.5.7.orig/src/MOGL/MOGL_GestionnaireObjet.h	2006-03-07 20:31:24.000000000 +0000
+++ briquolo-0.5.7/src/MOGL/MOGL_GestionnaireObjet.h	2008-03-29 18:47:44.000000000 +0000
@@ -24,7 +24,7 @@
 
 #include <vector>
 #include <iostream>
-#include <stdio.h>
+#include <cstdio>
 
 #include "MOGL_Triangle.h"
 #include "MOGL_Objet.h"
diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_Objet.cpp briquolo-0.5.7/src/MOGL/MOGL_Objet.cpp
--- briquolo-0.5.7.orig/src/MOGL/MOGL_Objet.cpp	2006-03-07 20:31:24.000000000 +0000
+++ briquolo-0.5.7/src/MOGL/MOGL_Objet.cpp	2008-03-29 18:47:44.000000000 +0000
@@ -20,6 +20,7 @@
  *
  *****************************************************************************/
 #include "MOGL_Objet.h"
+#include <cstdlib>
 
 //MOGL_Objet::MOGL_Objet(): MOGL_ObjetAbstrait(), MOGL_ElementArbre()
 MOGL_Objet::MOGL_Objet(): MOGL_Noeud(), _ModifieTriangle(true), _ModifieStrip(true),
diff -Naur briquolo-0.5.7.orig/src/MOGL/MOGL_Peau.cpp briquolo-0.5.7/src/MOGL/MOGL_Peau.cpp
--- briquolo-0.5.7.orig/src/MOGL/MOGL_Peau.cpp	2006-03-07 20:31:24.000000000 +0000
+++ briquolo-0.5.7/src/MOGL/MOGL_Peau.cpp	2008-03-29 18:47:44.000000000 +0000
@@ -20,6 +20,7 @@
  *
  *****************************************************************************/
 #include "MOGL_Peau.h"
+#include <cstdlib>
 
 MOGL_Peau::MOGL_Peau(): MOGL_Noeud(), _ModifieTriangle(true)
 {