[k3b] Endian fixes

Andreas Schwab schwab at linux-m68k.org
Sat Feb 13 19:16:50 UTC 2010


Define WORDS_BIGENDIAN and HAVE_BYTESWAP_H to get proper endian support.

Andreas.

Index: ConfigureChecks.cmake
===================================================================
--- ConfigureChecks.cmake	(revision 1089634)
+++ ConfigureChecks.cmake	(working copy)
@@ -6,8 +6,12 @@ include(CheckPrototypeExists)
 include(CheckTypeSize)
 include(CheckStructMember)
 include(CheckCXXSourceCompiles)
+include(TestBigEndian)
 
 check_function_exists(stat64 HAVE_STAT64)
 
 check_include_files(sys/vfs.h HAVE_SYS_VFS_H)
 check_include_files(sys/statvfs.h HAVE_SYS_STATVFS_H)
+check_include_files(byteswap.h HAVE_BYTESWAP_H)
+
+test_big_endian(WORDS_BIGENDIAN)
Index: config-k3b.h.cmake
===================================================================
--- config-k3b.h.cmake	(revision 1089634)
+++ config-k3b.h.cmake	(working copy)
@@ -18,3 +18,6 @@
 #define K3B_VERSION_STRING "${K3B_VERSION_STRING}"
 
 #cmakedefine ENABLE_HAL_SUPPORT
+
+#cmakedefine HAVE_BYTESWAP_H 1
+#cmakedefine WORDS_BIGENDIAN 1

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the k3b mailing list