From c2d9407d82d38ce3b00a67de37c154f650072606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 5 Feb 2017 14:25:11 +0100 Subject: [PATCH] Fix detection whether the system is big endian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 3 +++ config.h.cmake | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6176f72..0ca8036 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -26,6 +26,9 @@ endif( WITH_GCC_VISIBILITY ) ##### set architecture flags #################### tde_setup_architecture_flags( ) +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + ##### required stuff ############################ diff --git a/config.h.cmake b/config.h.cmake index dad62ef..46374a8 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,5 +1,9 @@ #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@ + // User specified build options #cmakedefine HAVE_TAGLIB 1