summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-26 22:01:16 +0000
committerrubidium <rubidium@openttd.org>2010-08-26 22:01:16 +0000
commit30f2afac9bf023bce081e52e09b1c0a152d9849a (patch)
tree1fd76e3ca5130b7949df16018d6a87952a5b447c /src/misc
parent08a41c6ee5f1500fcd472e953b2341ef996cb901 (diff)
downloadopenttd-30f2afac9bf023bce081e52e09b1c0a152d9849a.tar.xz
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/binaryheap.hpp2
-rw-r--r--src/misc/hashtable.hpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/misc/binaryheap.hpp b/src/misc/binaryheap.hpp
index 9096474e8..f7aedfc0a 100644
--- a/src/misc/binaryheap.hpp
+++ b/src/misc/binaryheap.hpp
@@ -12,6 +12,8 @@
#ifndef BINARYHEAP_HPP
#define BINARYHEAP_HPP
+#include "../core/alloc_func.hpp"
+
/* Enable it if you suspect binary heap doesn't work well */
#define BINARYHEAP_CHECK 0
diff --git a/src/misc/hashtable.hpp b/src/misc/hashtable.hpp
index cafd6d7a9..9b1de9436 100644
--- a/src/misc/hashtable.hpp
+++ b/src/misc/hashtable.hpp
@@ -12,6 +12,8 @@
#ifndef HASHTABLE_HPP
#define HASHTABLE_HPP
+#include "../core/math_func.hpp"
+
template <class Titem_>
struct CHashTableSlotT
{