From e05a06288ad9f91541a2c06729c00e764e89a568 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sat, 19 Apr 2014 00:21:24 +0200 Subject: [PATCH] [DEV] correct some Little and big enddian error --- tremor/misc.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/tremor/misc.h b/tremor/misc.h index 1ae4d2e..a30adad 100644 --- a/tremor/misc.h +++ b/tremor/misc.h @@ -40,22 +40,19 @@ #if !(defined WIN32 && defined WINCE) #include #endif - -#if BYTE_ORDER==LITTLE_ENDIAN -union magic { - struct { - ogg_int32_t lo; - ogg_int32_t hi; - } halves; - ogg_int64_t whole; -}; -#endif - #if BYTE_ORDER==BIG_ENDIAN +union magic { + struct { + ogg_int32_t hi; + ogg_int32_t lo; + } halves; + ogg_int64_t whole; +}; +#else union magic { struct { - ogg_int32_t hi; ogg_int32_t lo; + ogg_int32_t hi; } halves; ogg_int64_t whole; };