summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-25 14:08:56 +0000
committerrubidium <rubidium@openttd.org>2007-12-25 14:08:56 +0000
commit0bd93f5c3741fa040450e8cd941871b2a35934bc (patch)
tree5f3bd987b076408ff5055f57a24befcc756ad4fd
parent87bd412885427d11ee12f8468d848b06ebe7075f (diff)
downloadopenttd-0bd93f5c3741fa040450e8cd941871b2a35934bc.tar.xz
(svn r11697) -Fix [FS#1585]: strgen did not (always) compile properly.
-rw-r--r--src/core/endian_func.hpp2
-rw-r--r--src/strgen/strgen.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/endian_func.hpp b/src/core/endian_func.hpp
index 1e639272c..4e2e948d5 100644
--- a/src/core/endian_func.hpp
+++ b/src/core/endian_func.hpp
@@ -17,7 +17,7 @@
#elif !defined(TESTING)
/* Else include endian[target/host].h, which has the endian-type, autodetected by the Makefile */
#if defined(STRGEN)
- #include "/endian_host.h"
+ #include "endian_host.h"
#else
#include "endian_target.h"
#endif
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index f981e7cd8..b5d6208d2 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -4,6 +4,7 @@
#include "../string.h"
#include "../table/control_codes.h"
#include "../core/alloc_func.hpp"
+#include "../core/endian_func.hpp"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>