[DEV] correct some Little and big enddian error

This commit is contained in:
Edouard DUPIN 2014-04-19 00:21:24 +02:00
parent 841f407905
commit e05a06288a

View File

@ -40,17 +40,6 @@
#if !(defined WIN32 && defined WINCE)
#include <sys/types.h>
#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 {
@ -59,6 +48,14 @@ union magic {
} halves;
ogg_int64_t whole;
};
#else
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif
STIN ogg_int32_t MULT32(ogg_int32_t x, ogg_int32_t y) {