wok-next view celestia/stuff/celestia-1.6.0-gcc45.patch @ rev 19722
Up net-snmp (5.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 24 18:42:05 2017 +0200 (2017-05-24) |
parents | |
children |
line source
1 --- src/celengine/overlay.h 2010-04-16 17:43:35.000000000 +0200
2 +++ src/celengine/overlay.h 2010-04-16 17:43:55.000000000 +0200
3 @@ -12,6 +12,7 @@
5 #include <string>
6 #include <iostream>
7 +#include <cstdio>
8 #include <celtxf/texturefont.h>
11 --- src/celmath/mathlib.h 2010-04-16 18:16:09.000000000 +0200
12 +++ src/celmath/mathlib.h 2010-04-16 18:16:18.000000000 +0200
13 @@ -44,11 +44,6 @@ template<class T> T radToDeg(T r)
14 return r * 180 / static_cast<T>(PI);
15 }
17 -template<class T> T abs(T x)
18 -{
19 - return (x < 0) ? -x : x;
20 -}
21 -
22 template<class T> T square(T x)
23 {
24 return x * x;
25 --- src/celengine/star.cpp 2010-04-16 18:17:42.000000000 +0200
26 +++ src/celengine/star.cpp 2010-04-16 18:17:57.000000000 +0200
27 @@ -10,6 +10,7 @@
28 #include <celmath/mathlib.h>
29 #include <cstring>
30 #include <cassert>
31 +#include <cstdio>
32 #include "celestia.h"
33 #include "astro.h"
34 #include "orbit.h"
35 --- src/celestia/celx_object.cpp 2010-04-16 18:19:52.000000000 +0200
36 +++ src/celestia/celx_object.cpp 2010-04-16 18:22:37.000000000 +0200
37 @@ -773,7 +773,7 @@ static int object_mark(lua_State* l)
38 markAlpha = 1.0f;
40 Color markColorAlpha(0.0f, 1.0f, 0.0f, 0.9f);
41 - markColorAlpha = Color::Color(markColor, markAlpha);
42 + markColorAlpha = Color(markColor, markAlpha);
44 const char* markLabel = celx.safeGetString(6, WrongType, "Fifth argument to object:mark must be a string");
45 if (markLabel == NULL)