diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-02-03 15:24:21 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-02-03 15:24:21 +0100 |
commit | 909bc5d0170a152ec7f8d2f97ca3468c65afc7a3 (patch) | |
tree | 951cafb2d98ebd6ff0118443da6af62621f36038 | |
parent | 6338a63ec9080f9f89fd10cec38955a9be0cdbe5 (diff) | |
download | tdeutils-909bc5d0170a152ec7f8d2f97ca3468c65afc7a3.tar.gz tdeutils-909bc5d0170a152ec7f8d2f97ca3468c65afc7a3.zip |
Fix detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | ConfigureChecks.cmake | 3 | ||||
-rw-r--r-- | config.h.cmake | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 509362a..2658fc4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -24,6 +24,9 @@ endif( WITH_GCC_VISIBILITY ) tde_setup_architecture_flags( ) +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + ##### ark ####################################### diff --git a/config.h.cmake b/config.h.cmake index 91bc6ea..50adee4 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,6 +1,11 @@ #cmakedefine PACKAGE "@PACKAGE@" #cmakedefine VERSION "@VERSION@" +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@ + + // ark #cmakedefine HAVE_STRLCPY_PROTO |