Use configure.in to test for endianness on UNIX

This commit is contained in:
Marcus Comstedt
2012-05-08 16:12:33 +02:00
parent 4370f6c9d6
commit 82fb48738d
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -80,6 +80,13 @@
#ifdef HAVE_CONFIG_H
# include <../config.h>
# undef VERSION
# ifdef WORDS_BIGENDIAN
# undef LOVE_LITTLE_ENDIAN
# define LOVE_BIG_ENDIAN 1
# else
# undef LOVE_BIG_ENDIAN
# define LOVE_LITTLE_ENDIAN 1
# endif
#endif
#endif // LOVE_CONFIG_H