summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
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
{