fix compiling on x86/Solaris

--HG--
extra : convert_revision : f7d21fc277dd7172c244d83fb012883dc8b67895
This commit is contained in:
Ali Saidi 2007-01-22 21:57:01 -05:00
parent 5f662d451e
commit 60eaa03d72

View file

@ -130,7 +130,7 @@ template <typename T> static inline T letobe(T value) {return swap_byte(value);}
//For conversions not involving the guest system, we can define the functions
//conditionally based on the BYTE_ORDER macro and outside of the namespaces
#if defined(_BIG_ENDIAN) || BYTE_ORDER == BIG_ENDIAN
#if defined(_BIG_ENDIAN) || !defined(_LITTLE_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
template <typename T> static inline T htole(T value) {return swap_byte(value);}
template <typename T> static inline T letoh(T value) {return swap_byte(value);}
template <typename T> static inline T htobe(T value) {return value;}