Browse Source

Fix detection whether the system is big endian

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 2 years ago
parent
commit
c2d9407d82
2 changed files with 7 additions and 0 deletions
  1. 3
    0
      ConfigureChecks.cmake
  2. 4
    0
      config.h.cmake

+ 3
- 0
ConfigureChecks.cmake View File

@@ -26,6 +26,9 @@ endif( WITH_GCC_VISIBILITY )
26 26
 ##### set architecture flags ####################
27 27
 tde_setup_architecture_flags( )
28 28
 
29
+include(TestBigEndian)
30
+test_big_endian(WORDS_BIGENDIAN)
31
+
29 32
 
30 33
 ##### required stuff ############################
31 34
 

+ 4
- 0
config.h.cmake View File

@@ -1,5 +1,9 @@
1 1
 #cmakedefine VERSION "@VERSION@"
2 2
 
3
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
4
+   significant byte first (like Motorola and SPARC, unlike Intel). */
5
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
6
+
3 7
 // User specified build options
4 8
 
5 9
 #cmakedefine HAVE_TAGLIB 1

Loading…
Cancel
Save