aboutsummaryrefslogtreecommitdiff
blob: 6b71713c36deb551f51c7dcaf2c875b562f8b075 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
diff --git a/affected_unaffected_genotype_cluster_test.cc b/affected_unaffected_genotype_cluster_test.cc
index 646af06..4e5fbde 100644
--- a/affected_unaffected_genotype_cluster_test.cc
+++ b/affected_unaffected_genotype_cluster_test.cc
@@ -32,6 +32,7 @@
 # include "random_tree_builder.hh"
 #endif
 
+#include <cstring>
 
 void test_tree(const CoalescentTree &tree,
 	       const Haplotype &h0, const Haplotype &h1,
diff --git a/affected_unaffected_genotype_set_test.cc b/affected_unaffected_genotype_set_test.cc
index 07fa122..5f333f5 100644
--- a/affected_unaffected_genotype_set_test.cc
+++ b/affected_unaffected_genotype_set_test.cc
@@ -19,6 +19,8 @@
 # include "region.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/affected_unaffected_haplotype_cluster_test.cc b/affected_unaffected_haplotype_cluster_test.cc
index 145e05f..b5dddaa 100644
--- a/affected_unaffected_haplotype_cluster_test.cc
+++ b/affected_unaffected_haplotype_cluster_test.cc
@@ -32,6 +32,7 @@
 # include "random_tree_builder.hh"
 #endif
 
+#include <cstring>
 
 void test_tree(const CoalescentTree &tree,
 	       const Haplotype &h0, const Haplotype &h1,
diff --git a/affected_unaffected_haplotype_set_test.cc b/affected_unaffected_haplotype_set_test.cc
index fda6173..8489c54 100644
--- a/affected_unaffected_haplotype_set_test.cc
+++ b/affected_unaffected_haplotype_set_test.cc
@@ -19,6 +19,8 @@
 # include "region.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/au_random_tree_builder_test.cc b/au_random_tree_builder_test.cc
index a2d4daa..d6689e0 100644
--- a/au_random_tree_builder_test.cc
+++ b/au_random_tree_builder_test.cc
@@ -30,6 +30,7 @@
 # include "test_random.hh"
 #endif
 
+#include <cstring>
 
 void test_tree(const CoalescentTree *tree,
 	       const Haplotype &h0, const Haplotype &h1,
diff --git a/change_selector_test.cc b/change_selector_test.cc
index 5f655d1..9004bef 100644
--- a/change_selector_test.cc
+++ b/change_selector_test.cc
@@ -23,6 +23,8 @@
 # include "change.hh"
 #endif
 
+#include <cstring>
+
 // dummy class for testing
 struct DummyChange : public Change {
     DummyChange() : Change("Dummy change") {}
diff --git a/coalescent_tree.cc b/coalescent_tree.cc
index eb937e5..9e54a2b 100644
--- a/coalescent_tree.cc
+++ b/coalescent_tree.cc
@@ -7,6 +7,7 @@
 
 #include "coalescent_tree.hh"
 
+#include <algorithm>
 
 /** \file
  * \brief Implementation of the coalescent tree.
diff --git a/coalescent_tree_test.cc b/coalescent_tree_test.cc
index 20059e9..2971ead 100644
--- a/coalescent_tree_test.cc
+++ b/coalescent_tree_test.cc
@@ -30,6 +30,8 @@
 # define CMATH_INCLUDED
 #endif
 
+#include <cstring>
+
 namespace {
 
     CoalescentTree *test_tree(HaplotypePool &pool)
diff --git a/distance_matrix_test.cc b/distance_matrix_test.cc
index e2e8435..9d367ee 100644
--- a/distance_matrix_test.cc
+++ b/distance_matrix_test.cc
@@ -15,6 +15,8 @@
 # include "haplotype_pool.hh"
 #endif
 
+#include <cstring>
+
 namespace {
     int distance(const Haplotype &h1, const Haplotype &h2)
     {
diff --git a/distance_tree_builder_test.cc b/distance_tree_builder_test.cc
index e252c3e..3f589f4 100644
--- a/distance_tree_builder_test.cc
+++ b/distance_tree_builder_test.cc
@@ -15,6 +15,8 @@
 # include "test_random.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/filter_iterator_test.cc b/filter_iterator_test.cc
index bf5097b..e74a29f 100644
--- a/filter_iterator_test.cc
+++ b/filter_iterator_test.cc
@@ -21,6 +21,8 @@
 # define FUNCTIONAL_INCLUDED
 #endif
 
+#include <cstring>
+
 namespace {
   struct even : public std::unary_function<int,bool> {
     bool operator () (int i) const { return i % 2 == 0; }
diff --git a/genotype_pool_test.cc b/genotype_pool_test.cc
index e62a03f..9a2badb 100644
--- a/genotype_pool_test.cc
+++ b/genotype_pool_test.cc
@@ -22,6 +22,8 @@
 # include "genotype.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/genotype_test.cc b/genotype_test.cc
index 3d704e4..64b3343 100644
--- a/genotype_test.cc
+++ b/genotype_test.cc
@@ -22,6 +22,8 @@
 # include "haplotype.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/guile_sampler.cc b/guile_sampler.cc
index b0d19f1..ffbec86 100644
--- a/guile_sampler.cc
+++ b/guile_sampler.cc
@@ -26,6 +26,7 @@
 # define CASSERT_INCLUDED
 #endif
 
+#include <memory>
 
 /** \file
  * \brief Implementation of the guile sampler wrapper.
diff --git a/haplotype.cc b/haplotype.cc
index a38541f..7810642 100644
--- a/haplotype.cc
+++ b/haplotype.cc
@@ -12,6 +12,8 @@
 # define SSTREAM_INCLUDED
 #endif
 
+#include <algorithm>
+
 /** \file
  * \brief Implementation of haplotype functionality.
  */
diff --git a/haplotype_pool.cc b/haplotype_pool.cc
index ceef1b9..42c6125 100644
--- a/haplotype_pool.cc
+++ b/haplotype_pool.cc
@@ -7,6 +7,8 @@
 
 #include "haplotype_pool.hh"
 
+#include <algorithm>
+
 /** \file
  * \brief Implementation of haplotype pool functionality.
  */
diff --git a/haplotype_pool_test.cc b/haplotype_pool_test.cc
index a774809..4527d23 100644
--- a/haplotype_pool_test.cc
+++ b/haplotype_pool_test.cc
@@ -19,6 +19,8 @@
 # include "region.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/haplotype_test.cc b/haplotype_test.cc
index 134a601..b7f5b63 100644
--- a/haplotype_test.cc
+++ b/haplotype_test.cc
@@ -19,6 +19,8 @@
 # include "region.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/marker_test.cc b/marker_test.cc
index ff34d7c..317385d 100644
--- a/marker_test.cc
+++ b/marker_test.cc
@@ -13,6 +13,7 @@
 #include "testing.hh"
 
 #include <cmath>
+#include <cstring>
 
 int main(int argc, const char *argv[])
 {
diff --git a/markov_region_test.cc b/markov_region_test.cc
index 58e0278..db0f9ba 100644
--- a/markov_region_test.cc
+++ b/markov_region_test.cc
@@ -11,7 +11,7 @@
 
 #include "region.hh"
 #include "testing.hh"
-
+#include <cstring>
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/qtl_haplotype_pool_test.cc b/qtl_haplotype_pool_test.cc
index 72f763d..8c058af 100644
--- a/qtl_haplotype_pool_test.cc
+++ b/qtl_haplotype_pool_test.cc
@@ -19,6 +19,8 @@
 # include "region.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/random_set_test.cc b/random_set_test.cc
index 7eae435..b7a3451 100644
--- a/random_set_test.cc
+++ b/random_set_test.cc
@@ -15,6 +15,8 @@
 # include "test_random.hh"
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/random_tree_builder_test.cc b/random_tree_builder_test.cc
index e8c5957..7c95519 100644
--- a/random_tree_builder_test.cc
+++ b/random_tree_builder_test.cc
@@ -28,6 +28,7 @@
 # include "test_random.hh"
 #endif
 
+#include <cstring>
 
 void test_tree(const CoalescentTree *tree,
 	       const Haplotype &h0, const Haplotype &h1,
diff --git a/region.cc b/region.cc
index df22885..94bce6f 100644
--- a/region.cc
+++ b/region.cc
@@ -22,6 +22,8 @@
 # define CMATH_INCLUDED
 #endif
 
+#include <algorithm>
+
 
 /** \file
  * \brief Implementation of region functionality.
diff --git a/region_test.cc b/region_test.cc
index 25f6cf0..e21084f 100644
--- a/region_test.cc
+++ b/region_test.cc
@@ -11,6 +11,7 @@
 
 #include "region.hh"
 #include "testing.hh"
+#include <cstring>
 
 int main(int argc, const char *argv[])
 {
diff --git a/selection_if_test.cc b/selection_if_test.cc
index a9a6377..0fb8052 100644
--- a/selection_if_test.cc
+++ b/selection_if_test.cc
@@ -24,6 +24,8 @@
 # define VECTOR_INCLUDED
 #endif
 
+#include <cstring>
+
 namespace {
   struct even : public std::unary_function<int,bool> {
     bool operator () (int i) const { return i % 2 == 0; }
diff --git a/selection_test.cc b/selection_test.cc
index 3bf673a..579931c 100644
--- a/selection_test.cc
+++ b/selection_test.cc
@@ -28,6 +28,8 @@
 # define LIST_INCLUDED
 #endif
 
+#include <cstring>
+
 int main(int argc, const char *argv[])
 {
     HANDLE_TEST_OPTIONS;
diff --git a/testing.hh b/testing.hh
index fbdcd87..c86dbc6 100644
--- a/testing.hh
+++ b/testing.hh
@@ -23,6 +23,8 @@
 # define CSTDLIB_INCLUDED
 #endif
 
+#include <cstring>
+
 /// \brief Verboseness flag for running tests.
 ///
 /// If set, the test will report the failed tests, otherwise it will
diff --git a/tree_builder.hh b/tree_builder.hh
index 4b0ec01..c0bdc5a 100644
--- a/tree_builder.hh
+++ b/tree_builder.hh
@@ -34,6 +34,7 @@
 # include "meta_programming.hh"
 #endif
 
+#include <limits>
 
 /**
  * \brief Abstract class for tree builders.