Fix endianness checks on ppc64

ulab-next
Timothy Pearson 6 years ago
parent 32dd179685
commit 02ed98539c

@ -21,12 +21,20 @@
#if !(defined(L_ENDIAN) || defined(B_ENDIAN))
/* check endianess */
#if defined(__powerpc64__)
# if defined(__BIG_ENDIAN__)
# define B_ENDIAN
# else
# define L_ENDIAN
# endif
#else
# if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \
defined(__hppa__)
# define B_ENDIAN
# else
# define L_ENDIAN
# endif
#endif
/* check if we need to align data */
#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
defined(__AIX__) || defined(__PPC__) || defined(__mips__) || \

Loading…
Cancel
Save