# HG changeset patch # User iive # Date 1146827588 0 # Node ID afcecc96ed2d7bc6b0badfac66eda75f14eb255b # Parent 67a41ab8e9edebe9e05a9a008f9ec4b69ec0fb52 fix the warning generated (in gcc4) by the 'inline' keyword position. patch by Pierre Lombard diff -r 67a41ab8e9ed -r afcecc96ed2d bswap.h --- a/bswap.h Thu May 04 19:10:16 2006 +0000 +++ b/bswap.h Fri May 05 11:13:08 2006 +0000 @@ -117,21 +117,21 @@ #endif /* !HAVE_BYTESWAP_H */ -static float inline bswap_flt(float x) { +static inline float bswap_flt(float x) { union {uint32_t i; float f;} u; u.f = x; u.i = bswap_32(u.i); return u.f; } -static double inline bswap_dbl(double x) { +static inline double bswap_dbl(double x) { union {uint64_t i; double d;} u; u.d = x; u.i = bswap_64(u.i); return u.d; } -static long double inline bswap_ldbl(long double x) { +static inline long double bswap_ldbl(long double x) { union {char d[10]; long double ld;} uin; union {char d[10]; long double ld;} uout; uin.ld = x;