index f4708b2b0cf5dc67671bf97db231067ca2a4391c..a70e20bc9ad3a23b40f944041449f65641476a2f 100644 (file)
--- a/src/common/endianness.h
+++ b/src/common/endianness.h
#define SWAP_VAR(a, b) do { unsigned char t = a; a = b; b = t; } while(0)
-static inline int16_t short2swap (int16_t x) {
+static /*inline*/ int16_t short2swap (int16_t x) {
union {
uint8_t a[2];
int16_t x;
return y.x;
}
-static inline int32_t int2swap (int32_t x) {
+static /*inline*/ int32_t int2swap (int32_t x) {
union {
uint8_t a[4];
int32_t x;
#undef SWAP_VAR
-static inline int16_t short2host (int16_t x) {
+static /*inline*/ int16_t short2host (int16_t x) {
#if __BIG_ENDIAN__
return short2swap(x);
#else
#endif
}
-static inline int32_t int2host (int32_t x) {
+static /*inline*/ int32_t int2host (int32_t x) {
#if __BIG_ENDIAN__
return int2swap(x);
#else