Ver código fonte

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 anos atrás
pai
commit
117ec1e9d4
3 arquivos alterados com 8 adições e 0 exclusões
  1. 3
    0
      CMakeLists.txt
  2. 4
    0
      config.h.cmake
  3. 1
    0
      mcop/debug.cc

+ 3
- 0
CMakeLists.txt Ver arquivo

@@ -62,6 +62,9 @@ tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" )

tde_setup_architecture_flags( )

include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)


##### check for include files ###################


+ 4
- 0
config.h.cmake Ver arquivo

@@ -1,6 +1,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@

#cmakedefine HAVE_SYS_TIME_H 1
#cmakedefine TIME_WITH_SYS_TIME 1
#cmakedefine HAVE_STDIO_H 1

+ 1
- 0
mcop/debug.cc Ver arquivo

@@ -24,6 +24,7 @@
*/

#include "debug.h"
#include <config.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>

Carregando…
Cancelar
Salvar