(svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms

This commit is contained in:
rubidium
2011-03-03 21:43:24 +00:00
parent 25c7bdde66
commit 59e42ea178
4 changed files with 10 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
#define TTD_ENDIAN TTD_LITTLE_ENDIAN
#elif !defined(TESTING)
/* Else include endian[target/host].h, which has the endian-type, autodetected by the Makefile */
#if defined(STRGEN)
#if defined(STRGEN) || defined(SETTINGSGEN)
#include "endian_host.h"
#else
#include "endian_target.h"