common: fix check for big endian arches

Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=905411
ulab-next-nosound
Koichiro IWAO 10 years ago
parent a6d71388c8
commit dd979731c4

@ -19,10 +19,12 @@
#if !defined(ARCH_H) #if !defined(ARCH_H)
#define ARCH_H #define ARCH_H
#include <endian.h>
#if !(defined(L_ENDIAN) || defined(B_ENDIAN)) #if !(defined(L_ENDIAN) || defined(B_ENDIAN))
/* check endianess */ /* check endianess */
#if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \ #if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \
defined(__hppa__) defined(__hppa__) || (BYTE_ORDER == BIG_ENDIAN)
#define B_ENDIAN #define B_ENDIAN
#else #else
#define L_ENDIAN #define L_ENDIAN

Loading…
Cancel
Save