# HG changeset patch # User Tassilo Philipp # Date 1490180543 -3600 # Node ID a74e2cd933482face548d82ef2f836611576de86 # Parent 3999750fae28b80fd316c22381175c86a0d4609f - sparc64 endian detection on non-explicit platforms diff -r 3999750fae28 -r a74e2cd93348 dyncall/dyncall_macros.h --- a/dyncall/dyncall_macros.h Tue Mar 21 02:31:55 2017 +0100 +++ b/dyncall/dyncall_macros.h Wed Mar 22 12:02:23 2017 +0100 @@ -271,13 +271,14 @@ DC__Arch_Itanium DC__Arch_PPC32 DC__Arch_PPC64 -DC__Arch_Sparc64 DC__Arch_SuperH */ # if (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 1)) || defined(_BIG_ENDIAN) || defined(MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) # define DC__Endian_BIG # elif (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 2)) || defined(_LITTLE_ENDIAN) || defined(MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) # define DC__Endian_LITTLE +# elif defined(DC__Arch_Sparc64) && !defined(__BYTE_ORDER__) /* Sparc64 default is big-endian, except if explicitly defined */ +# define DC__Endian_BIG # elif defined(__BYTE_ORDER__) /* explicitly set */ # if defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) # define DC__Endian_BIG