summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-04-24 15:41:01 +0000
committertruelight <truelight@openttd.org>2005-04-24 15:41:01 +0000
commitfacd3d1af1e26c0bb25c109f0b0b2d9e65275535 (patch)
tree5246464713ebce7cbbd09cc0c5a270b2e4ce6ef3 /stdafx.h
parent176c155193f11788e473cb09ad5cc56313949fc4 (diff)
downloadopenttd-facd3d1af1e26c0bb25c109f0b0b2d9e65275535.tar.xz
(svn r2225) -Fix: split the endian-detection to target/host. Now cross-compiling
on i386-linux for MacOSX should also work for the language-files (strgen issues)
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/stdafx.h b/stdafx.h
index 982c71cf4..22c7024c1 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -116,8 +116,12 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap);
#if defined(WIN32) || defined(__OS2__)
#define TTD_LITTLE_ENDIAN
#else
-// Else include endian.h, which has the endian-type, autodetected by the Makefile
- #include "endian.h"
+// Else include endian[target/host].h, which has the endian-type, autodetected by the Makefile
+ #if defined(STRGEN)
+ #include "endian_host.h"
+ #else
+ #include "endian_target.h"
+ #endif
#endif
#if defined(UNIX)