|
|
@ -21,11 +21,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
#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(__powerpc64__)
|
|
|
|
defined(__hppa__)
|
|
|
|
# if defined(__BIG_ENDIAN__)
|
|
|
|
#define B_ENDIAN
|
|
|
|
# define B_ENDIAN
|
|
|
|
|
|
|
|
# else
|
|
|
|
|
|
|
|
# define L_ENDIAN
|
|
|
|
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define L_ENDIAN
|
|
|
|
# if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \
|
|
|
|
|
|
|
|
defined(__hppa__)
|
|
|
|
|
|
|
|
# define B_ENDIAN
|
|
|
|
|
|
|
|
# else
|
|
|
|
|
|
|
|
# define L_ENDIAN
|
|
|
|
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/* check if we need to align data */
|
|
|
|
/* check if we need to align data */
|
|
|
|
#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
|
|
|
|
#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
|
|
|
|