updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / construo / includes.patch
blob427e5286739e29e13055e232156dd56538357cde
1 diff -pu construo-0.2.2/command_line.cxx construo-0.2.2-new/command_line.cxx
2 --- construo-0.2.2/command_line.cxx 2003-07-26 20:47:47.000000000 +0200
3 +++ construo-0.2.2-new/command_line.cxx 2008-04-26 23:58:17.000000000 +0200
4 @@ -17,6 +17,8 @@
5 // along with this program; if not, write to the Free Software
6 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8 +#include <stdlib.h>
9 +#include <string.h>
10 #include <config.h>
11 #include <iostream>
12 #include <stdio.h>
13 diff -pu construo-0.2.2/config.hxx construo-0.2.2-new/config.hxx
14 --- construo-0.2.2/config.hxx 2003-01-11 16:37:26.000000000 +0100
15 +++ construo-0.2.2-new/config.hxx 2008-04-26 23:58:30.000000000 +0200
16 @@ -20,6 +20,7 @@
17 #ifndef CONFIG_HH
18 #define CONFIG_HH
20 +#include <stdlib.h>
21 #include <string>
23 class Config
24 diff -pu construo-0.2.2/lisp_reader.cxx construo-0.2.2-new/lisp_reader.cxx
25 --- construo-0.2.2/lisp_reader.cxx 2003-01-11 16:37:26.000000000 +0100
26 +++ construo-0.2.2-new/lisp_reader.cxx 2008-04-26 23:58:44.000000000 +0200
27 @@ -17,6 +17,7 @@
28 // along with this program; if not, write to the Free Software
29 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 +#include <string.h>
32 #include "construo_error.hxx"
33 #include "lisp_reader.hxx"
35 diff -pu construo-0.2.2/unix_system.cxx construo-0.2.2-new/unix_system.cxx
36 --- construo-0.2.2/unix_system.cxx 2003-07-26 20:47:49.000000000 +0200
37 +++ construo-0.2.2-new/unix_system.cxx 2008-04-26 23:59:02.000000000 +0200
38 @@ -17,6 +17,8 @@
39 // along with this program; if not, write to the Free Software
40 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
42 +#include <stdlib.h>
43 +#include <string.h>
44 #include <stdio.h>
45 #include <assert.h>
46 #include <unistd.h>
47 diff -pu construo-0.2.2/vector.cxx construo-0.2.2-new/vector.cxx
48 --- construo-0.2.2/vector.cxx 2003-01-11 16:37:26.000000000 +0100
49 +++ construo-0.2.2-new/vector.cxx 2008-04-26 23:59:22.000000000 +0200
50 @@ -66,7 +66,7 @@ float CL_Vector::angle(const CL_Vector&
51 #ifdef WIN32
52 return (float)acos(dot(v)/(norm()*v.norm()));
53 #else
54 - return std::acos(dot(v)/(norm()*v.norm()));
55 + return acos(dot(v)/(norm()*v.norm()));
56 #endif
59 @@ -87,8 +87,8 @@ CL_Vector CL_Vector::rotate(float angle,
60 float s = (float)sin(angle);
61 float c = (float)cos(angle);
62 #else
63 - float s = std::sin(angle);
64 - float c = std::cos(angle);
65 + float s = sin(angle);
66 + float c = cos(angle);
67 #endif
69 tmp.x = x*(a.x*a.x*(1-c)+c) + y*(a.x*a.y*(1-c)-a.z*s) + z*(a.x*a.z*(1-c)+a.y*s);
70 diff -pu construo-0.2.2/world.cxx construo-0.2.2-new/world.cxx
71 --- construo-0.2.2/world.cxx 2003-07-28 22:57:41.000000000 +0200
72 +++ construo-0.2.2-new/world.cxx 2008-04-26 23:59:32.000000000 +0200
73 @@ -17,6 +17,7 @@
74 // along with this program; if not, write to the Free Software
75 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
77 +#include <string.h>
78 #include <assert.h>
79 #include <algorithm>
80 #include "config.h"
81 diff -pu construo-0.2.2/x11_display.cxx construo-0.2.2-new/x11_display.cxx
82 --- construo-0.2.2/x11_display.cxx 2003-07-29 00:46:48.000000000 +0200
83 +++ construo-0.2.2-new/x11_display.cxx 2008-04-26 23:59:42.000000000 +0200
84 @@ -17,6 +17,7 @@
85 // along with this program; if not, write to the Free Software
86 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
88 +#include <string.h>
89 #include <config.h>
90 #include <iostream>
91 #include <X11/Xutil.h>