(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)
This commit is contained in:
truelight
2005-04-24 15:41:01 +00:00
parent 176c155193
commit facd3d1af1
3 changed files with 20 additions and 9 deletions

View File

@@ -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)