dev-python/pyfeyn: cleaning old
[gentoo.git] / app-office / passepartout / files / passepartout-0.7.0-gcc43.patch
1 --- a/src/fonts/afm.cc
2 +++ b/src/fonts/afm.cc
3 @@ -10,6 +10,8 @@
4  #include "util/warning.h"
5  #include "util/stringutil.h"
6  
7 +#include <limits>
8 +
9  using std::string;
10  
11  class font::AFMetrics::GlyphData {
12 --- a/src/fonts/fontmanager.cc
13 +++ b/src/fonts/fontmanager.cc
14 @@ -14,6 +14,8 @@
15  #include "util/filesys.h"
16  #include "util/warning.h"
17  
18 +#include <memory>
19 +
20  font::FontManager* font::FontManager::_instance = 0;
21  // StaticMutex can, unlike regular Mutex, be created before the call
22  // to thread_init
23 --- a/src/pptout/document/rasterframe.cc
24 +++ b/src/pptout/document/rasterframe.cc
25 @@ -12,6 +12,8 @@
26  #include "ps/misc.h"
27  #include "pptout/config.h" // Todo
28  
29 +#include <ctime>
30 +
31  RasterFrame::RasterFrame(const ElementWrap& xml, Group *parent)
32    : BasicFrame(xml, parent),
33      association(xml.get_filename("file")),
34 --- a/src/ps/encode.h
35 +++ b/src/ps/encode.h
36 @@ -8,6 +8,7 @@
37  #include <iostream>
38  #include <string>
39  #include <vector>
40 +#include <cstring>
41  
42  // Standard PostScript encoding filters
43  
44 --- a/src/ps/examinepdf.cc
45 +++ b/src/ps/examinepdf.cc
46 @@ -5,6 +5,7 @@
47  #include <fstream>
48  #include <cassert>             // Todo: other assert!
49  #include <iostream>
50 +#include <cstdlib>
51  
52  void usage() {}
53  
54 --- a/src/ps/pdf.cc
55 +++ b/src/ps/pdf.cc
56 @@ -15,6 +15,7 @@
57  #include <stdexcept>
58  #include <glibmm/convert.h>
59  #include <fstream>
60 +#include <typeinfo>
61  
62  
63  namespace {
64 --- a/src/util/filesys.cc
65 +++ b/src/util/filesys.cc
66 @@ -14,6 +14,9 @@
67  #include <sys/types.h>
68  #endif
69  
70 +#include <cstring>
71 +#include <stdlib.h>
72 +
73  using std::string;
74  
75  ClibException::ClibException(const string& msg)
76 --- a/src/util/vector.h
77 +++ b/src/util/vector.h
78 @@ -5,6 +5,7 @@
79  ///
80  #include <algorithm> // max
81  #include <cmath> // sqrt
82 +#include <ostream>
83  template<class C> C sqr(const C& c) { return c*c; }
84  
85  template <class C>
86 --- a/src/util/tempfile.cc
87 +++ b/src/util/tempfile.cc
88 @@ -8,6 +8,9 @@
89  #include <stdexcept>
90  #include <unistd.h>
91  
92 +#include <cstring>
93 +#include <stdlib.h>
94 +
95  namespace {
96    std::string get_tmplate(std::string base) {
97      base += "XXXXXX";