Fix detection whether the system is big endian

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/21/head
Slávek Banko 8 years ago
parent a99988adb2
commit 1458cc35b2

@ -11,6 +11,9 @@
tde_setup_architecture_flags( ) tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
##### check for gcc visibility support ######### ##### check for gcc visibility support #########
# FIXME # FIXME
# This should check for [T]Qt3 visibility support # This should check for [T]Qt3 visibility support
@ -25,6 +28,10 @@ if( WITH_GCC_VISIBILITY )
endif( ) endif( )
if( BUILD_KMAIL )
check_include_file( "byteswap.h" HAVE_BYTESWAP_H )
endif( )
if( BUILD_LIBTDEPIM OR BUILD_KMAIL ) if( BUILD_LIBTDEPIM OR BUILD_KMAIL )
option( TDEPIM_NEW_DISTRLISTS "Define if you want to use the new distribution lists" ON ) option( TDEPIM_NEW_DISTRLISTS "Define if you want to use the new distribution lists" ON )
endif( ) endif( )

@ -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@
// libkcal // libkcal
#cmakedefine USE_LIBICAL_0_46 1 #cmakedefine USE_LIBICAL_0_46 1
@ -33,6 +38,7 @@
#cmakedefine HAVE_LIBSASL2 1 #cmakedefine HAVE_LIBSASL2 1
// kmail // kmail
#cmakedefine HAVE_BYTESWAP_H 1
#cmakedefine HAVE_STLNAMESPACE 1 #cmakedefine HAVE_STLNAMESPACE 1
#cmakedefine STD_NAMESPACE_PREFIX @STD_NAMESPACE_PREFIX@ #cmakedefine STD_NAMESPACE_PREFIX @STD_NAMESPACE_PREFIX@

@ -15,6 +15,7 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/ktnef ${CMAKE_SOURCE_DIR}/ktnef
${CMAKE_SOURCE_DIR}/libtdepim ${CMAKE_SOURCE_DIR}/libtdepim
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
) )

@ -17,6 +17,8 @@
* MA 02110-1301, USA. * MA 02110-1301, USA.
*/ */
#include <config.h>
#include <math.h> #include <math.h>
#include <assert.h> #include <assert.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>

Loading…
Cancel
Save