summaryrefslogtreecommitdiff
blob: 64703e164a4733848de2eb76be784a86eab5ee0a (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
89
90
91
92
93
94
95
96
97
--- a/src/fonts/afm.cc
+++ b/src/fonts/afm.cc
@@ -10,6 +10,8 @@
 #include "util/warning.h"
 #include "util/stringutil.h"
 
+#include <limits>
+
 using std::string;
 
 class font::AFMetrics::GlyphData {
--- a/src/fonts/fontmanager.cc
+++ b/src/fonts/fontmanager.cc
@@ -14,6 +14,8 @@
 #include "util/filesys.h"
 #include "util/warning.h"
 
+#include <memory>
+
 font::FontManager* font::FontManager::_instance = 0;
 // StaticMutex can, unlike regular Mutex, be created before the call
 // to thread_init
--- a/src/pptout/document/rasterframe.cc
+++ b/src/pptout/document/rasterframe.cc
@@ -12,6 +12,8 @@
 #include "ps/misc.h"
 #include "pptout/config.h" // Todo
 
+#include <ctime>
+
 RasterFrame::RasterFrame(const ElementWrap& xml, Group *parent)
   : BasicFrame(xml, parent),
     association(xml.get_filename("file")),
--- a/src/ps/encode.h
+++ b/src/ps/encode.h
@@ -8,6 +8,7 @@
 #include <iostream>
 #include <string>
 #include <vector>
+#include <cstring>
 
 // Standard PostScript encoding filters
 
--- a/src/ps/examinepdf.cc
+++ b/src/ps/examinepdf.cc
@@ -5,6 +5,7 @@
 #include <fstream>
 #include <cassert>		// Todo: other assert!
 #include <iostream>
+#include <cstdlib>
 
 void usage() {}
 
--- a/src/ps/pdf.cc
+++ b/src/ps/pdf.cc
@@ -15,6 +15,7 @@
 #include <stdexcept>
 #include <glibmm/convert.h>
 #include <fstream>
+#include <typeinfo>
 
 
 namespace {
--- a/src/util/filesys.cc
+++ b/src/util/filesys.cc
@@ -14,6 +14,9 @@
 #include <sys/types.h>
 #endif
 
+#include <cstring>
+#include <stdlib.h>
+
 using std::string;
 
 ClibException::ClibException(const string& msg)
--- a/src/util/vector.h
+++ b/src/util/vector.h
@@ -5,6 +5,7 @@
 ///
 #include <algorithm> // max
 #include <cmath> // sqrt
+#include <ostream>
 template<class C> C sqr(const C& c) { return c*c; }
 
 template <class C>
--- a/src/util/tempfile.cc
+++ b/src/util/tempfile.cc
@@ -8,6 +8,9 @@
 #include <stdexcept>
 #include <unistd.h>
 
+#include <cstring>
+#include <stdlib.h>
+
 namespace {
   std::string get_tmplate(std::string base) {
     base += "XXXXXX";