updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / log4cpp / gcc43.patch
bloba60f986e9c0dd5e3809bb73ecd0508447ba3a50a
1 Index: log4cpp-1.0/src/BasicLayout.cpp
2 ===================================================================
3 --- log4cpp-1.0.orig/src/BasicLayout.cpp 2008-03-14 16:06:57.000000000 -0400
4 +++ log4cpp-1.0/src/BasicLayout.cpp 2008-03-14 16:07:11.000000000 -0400
5 @@ -15,6 +15,8 @@
6 #include <sstream>
7 #endif
9 +#include <memory>
11 namespace log4cpp {
13 BasicLayout::BasicLayout() {
14 Index: log4cpp-1.0/src/PatternLayout.cpp
15 ===================================================================
16 --- log4cpp-1.0.orig/src/PatternLayout.cpp 2008-03-14 16:07:33.000000000 -0400
17 +++ log4cpp-1.0/src/PatternLayout.cpp 2008-03-14 16:07:49.000000000 -0400
18 @@ -370,7 +370,7 @@
19 literal = "";
21 if ((minWidth != 0) || (maxWidth != 0)) {
22 - component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0);
23 + component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0);
24 minWidth = maxWidth = 0;
26 _components.push_back(component);