summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-15 16:41:15 +0000
committerrubidium <rubidium@openttd.org>2010-01-15 16:41:15 +0000
commit82fc28f77f4ba1d613c1930781f77b45e4af5121 (patch)
treeb543a897f7be0f9b23b210bbf8c4fcb246e8f7fc /src/misc
parentf380a7239d3f40c08408e435d28db11f96a2ea4d (diff)
downloadopenttd-82fc28f77f4ba1d613c1930781f77b45e4af5121.tar.xz
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/array.hpp1
-rw-r--r--src/misc/blob.hpp1
-rw-r--r--src/misc/dbg_helpers.h7
-rw-r--r--src/misc/fixedsizearray.hpp1
-rw-r--r--src/misc/str.hpp1
5 files changed, 9 insertions, 2 deletions
diff --git a/src/misc/array.hpp b/src/misc/array.hpp
index 5ae836a08..f5a602155 100644
--- a/src/misc/array.hpp
+++ b/src/misc/array.hpp
@@ -13,6 +13,7 @@
#define ARRAY_HPP
#include "fixedsizearray.hpp"
+#include "str.hpp"
/** Flexible array with size limit. Implemented as fixed size
* array of fixed size arrays */
diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp
index 17e3a5947..d475231b6 100644
--- a/src/misc/blob.hpp
+++ b/src/misc/blob.hpp
@@ -14,6 +14,7 @@
#include "../core/alloc_func.hpp"
#include "../core/mem_func.hpp"
+#include <new>
/** Base class for simple binary blobs.
* Item is byte.
diff --git a/src/misc/dbg_helpers.h b/src/misc/dbg_helpers.h
index 56eebb247..670548d35 100644
--- a/src/misc/dbg_helpers.h
+++ b/src/misc/dbg_helpers.h
@@ -12,13 +12,16 @@
#ifndef DBG_HELPERS_H
#define DBG_HELPERS_H
-#include <new>
#include <map>
#include <stack>
-#include "blob.hpp"
#include "str.hpp"
+#include "../direction_type.h"
+#include "../signal_type.h"
+#include "../tile_type.h"
+#include "../track_type.h"
+
/** Helper template class that provides C array length and item type */
template <typename T> struct ArrayT;
diff --git a/src/misc/fixedsizearray.hpp b/src/misc/fixedsizearray.hpp
index b17755c5e..3e39cc4d9 100644
--- a/src/misc/fixedsizearray.hpp
+++ b/src/misc/fixedsizearray.hpp
@@ -12,6 +12,7 @@
#ifndef FIXEDSIZEARRAY_HPP
#define FIXEDSIZEARRAY_HPP
+#include "../core/alloc_func.hpp"
/** fixed size array
* Upon construction it preallocates fixed size block of memory
diff --git a/src/misc/str.hpp b/src/misc/str.hpp
index 64e401adb..8ef8e8f87 100644
--- a/src/misc/str.hpp
+++ b/src/misc/str.hpp
@@ -14,6 +14,7 @@
#include <errno.h>
#include <stdarg.h>
+#include "blob.hpp"
#include "../string_func.h"
/** Blob based case sensitive ANSI/UTF-8 string */