summaryrefslogtreecommitdiffstats
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-08-25 15:26:49 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-09-01 19:02:11 +0200
commit7d77ae4695f70b6e88832fffbf771c55dbc37b1d (patch)
tree01a43b56b7607514237eecddba0527bd96885da2 /config.h.cmake
parent0484f60a689b1334f0b5db9865b89efda71fc848 (diff)
downloadtdeadmin-7d77ae4695f70b6e88832fffbf771c55dbc37b1d.tar.gz
tdeadmin-7d77ae4695f70b6e88832fffbf771c55dbc37b1d.zip
cmake: Add detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 74d59d78840da38cdcbe4dacb032fec2e0f2f437)
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake16
1 files changed, 4 insertions, 12 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 47cd0c7..a3a579f 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -3,6 +3,10 @@
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+/* 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@
+
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
@@ -291,18 +295,6 @@
/* Defined if compiling without arts */
/* #undef WITHOUT_ARTS */
-/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
- significant byte first (like Motorola and SPARC, unlike Intel). */
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
-# define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-/* # undef WORDS_BIGENDIAN */
-# endif
-#endif
-
/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only