From 6f390d65678669794975f1f0bb994f261fe7dfcf Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Wed, 20 Feb 2008 18:09:37 +0000 Subject: [PATCH] Switch to what I hope is a truly cross-platform endianness check. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@741 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/sipctrl/hash.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/plug-in/sipctrl/hash.cpp b/core/plug-in/sipctrl/hash.cpp index b13d798d..783e28f9 100644 --- a/core/plug-in/sipctrl/hash.cpp +++ b/core/plug-in/sipctrl/hash.cpp @@ -40,8 +40,6 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. # include /* attempt to define endianness */ #endif -#include "compat/solaris.h" - /* * My best guess at if you are big-endian or little-endian. This may * need adjustment. @@ -49,10 +47,10 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. * code elsewhere in SEMS, which started off using just __BYTE_ORDER. I * extended it to work on Solaris, too. */ -#if (defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN)) || defined(_LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN) +#if (defined(BYTE_ORDER) && (BYTE_ORDER == LITTLE_ENDIAN)) # define HASH_LITTLE_ENDIAN 1 # define HASH_BIG_ENDIAN 0 -#elif (defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN)) || defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN) +#elif (defined(BYTE_ORDER) && (BYTE_ORDER == BIG_ENDIAN)) # define HASH_LITTLE_ENDIAN 0 # define HASH_BIG_ENDIAN 1 #else