Fix detection whether the system is big endian

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2b3ad7abc1)
r14.0.x
Slávek Banko 8 years ago
parent 2ced544dd8
commit 23ab6bfe0a

@ -9,6 +9,11 @@
#
#################################################
# little/big endian?
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
# hal
pkg_search_module( HAL hal )
if( NOT HAL_FOUND )

@ -1 +1,5 @@
#define KNETWORKMANAGER_VERSION_STRING "@KNETWORKMANAGER_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@

@ -12,6 +12,8 @@
* See README and COPYING for more details.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>

Loading…
Cancel
Save