diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-02-03 13:17:47 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-02-03 13:17:47 +0100 |
commit | ed71acf6dcd9380590048fc5c6eb9fd22cb3b9c5 (patch) | |
tree | 0cf1707449dec0ccd3751e6a189550b60a2f78ec | |
parent | 84474cc6fbb7f178d0fd9eb5e4702469aa2342f7 (diff) | |
download | tdenetwork-ed71acf6dcd9380590048fc5c6eb9fd22cb3b9c5.tar.gz tdenetwork-ed71acf6dcd9380590048fc5c6eb9fd22cb3b9c5.zip |
Fix detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | ConfigureChecks.cmake | 4 | ||||
-rw-r--r-- | config.h.cmake | 6 | ||||
-rw-r--r-- | kopete/libkopete/kopeteonlinestatusmanager.cpp | 1 | ||||
-rw-r--r-- | kopete/protocols/yahoo/libkyahoo/CMakeLists.txt | 4 | ||||
-rw-r--r-- | kopete/protocols/yahoo/libkyahoo/sha1.c | 2 |
5 files changed, 12 insertions, 5 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 8579d7a1..c6ba0fb4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -11,6 +11,10 @@ # required stuff tde_setup_architecture_flags( ) + +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + find_package( TQt ) find_package( TDE ) diff --git a/config.h.cmake b/config.h.cmake index 4006c692..38def3f3 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,3 +1,8 @@ + +/* 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@ + // krdp #define VERSION "@VERSION@" @@ -10,6 +15,7 @@ #cmakedefine VIDEODEV_HEADER "@VIDEODEV_HEADER@" // kopete/protocols/yahoo +#cmakedefine HAVE_INTTYPES_H 1 #cmakedefine HAVE_STRINGS_H 1 // kopete/protocols/yahoo, kppp diff --git a/kopete/libkopete/kopeteonlinestatusmanager.cpp b/kopete/libkopete/kopeteonlinestatusmanager.cpp index 0809881d..75417e16 100644 --- a/kopete/libkopete/kopeteonlinestatusmanager.cpp +++ b/kopete/libkopete/kopeteonlinestatusmanager.cpp @@ -16,6 +16,7 @@ ************************************************************************* */ +#include "config.h" #include "kopeteonlinestatusmanager.h" #include "kopeteawayaction.h" diff --git a/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt b/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt index 131ca394..68b1decc 100644 --- a/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt +++ b/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt @@ -11,10 +11,6 @@ include( ConfigureChecks.cmake ) -if( HAVE_INTTYPES_H ) - add_definitions( -DHAVE_INTTYPES_H ) -endif() - include_directories( ${CMAKE_CURRENT_BINARY_DIR} diff --git a/kopete/protocols/yahoo/libkyahoo/sha1.c b/kopete/protocols/yahoo/libkyahoo/sha1.c index 69ee51c2..506c183f 100644 --- a/kopete/protocols/yahoo/libkyahoo/sha1.c +++ b/kopete/protocols/yahoo/libkyahoo/sha1.c @@ -37,7 +37,7 @@ * 34aa973c d4c4daa4 f61eeb2b dbad2731 6534016f */ -/* #include <config-kopete.h> */ +#include "config.h" #ifdef HAVE_INTTYPES_H # include <inttypes.h> |