DEADSOFTWARE

portability: avoid errors on some compilers
[flatwaifu.git] / src / common / endianness.h
index f4708b2b0cf5dc67671bf97db231067ca2a4391c..a70e20bc9ad3a23b40f944041449f65641476a2f 100644 (file)
@@ -5,7 +5,7 @@
 
 #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;
@@ -15,7 +15,7 @@ static inline int16_t short2swap (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;
@@ -28,7 +28,7 @@ static inline int32_t int2swap (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
@@ -36,7 +36,7 @@ static inline int16_t short2host (int16_t x) {
 #endif
 }
 
-static inline int32_t int2host (int32_t x) {
+static /*inline*/ int32_t int2host (int32_t x) {
 #if __BIG_ENDIAN__
   return int2swap(x);
 #else