summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-24 18:44:29 +0000
committerrubidium <rubidium@openttd.org>2014-04-24 18:44:29 +0000
commit66743167c9a661a811467da760f50ca2e06373e9 (patch)
treef9f115d8899f5bacdc9f9c47e78b3bb924e9e1ec /src
parent99452c51ce8c9042e900c02be206c469f85660e6 (diff)
downloadopenttd-66743167c9a661a811467da760f50ca2e06373e9.tar.xz
(svn r26501) -Fix: Windows compilation error
Diffstat (limited to 'src')
-rw-r--r--src/script/script_scanner.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/script/script_scanner.cpp b/src/script/script_scanner.cpp
index 2eb056049..3796aafd5 100644
--- a/src/script/script_scanner.cpp
+++ b/src/script/script_scanner.cpp
@@ -18,6 +18,12 @@
#include "script_scanner.hpp"
#include "script_info.hpp"
+#if defined(ENABLE_NETWORK)
+#include "../network/network_content.h"
+#include "../3rdparty/md5/md5.h"
+#include "../tar_type.h"
+#endif /* ENABLE_NETWORK */
+
#include "../safeguards.h"
bool ScriptScanner::AddFile(const char *filename, size_t basepath_length, const char *tar_filename)
@@ -172,9 +178,6 @@ char *ScriptScanner::GetConsoleList(char *p, const char *last, bool newest_only)
}
#if defined(ENABLE_NETWORK)
-#include "../network/network_content.h"
-#include "../3rdparty/md5/md5.h"
-#include "../tar_type.h"
/** Helper for creating a MD5sum of all files within of a script. */
struct ScriptFileChecksumCreator : FileScanner {