diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-05 11:13:08 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-05 11:13:08 +0000 |
commit | 936d5df9e05856e888bb92dbe077b3042dc6837a (patch) | |
tree | 2af3c58d61aaf6d390838af0b8b1d658e439558a /bswap.h | |
parent | 551166192fd5e1e9a845391834aeb0003c8e315f (diff) | |
download | mpv-936d5df9e05856e888bb92dbe077b3042dc6837a.tar.bz2 mpv-936d5df9e05856e888bb92dbe077b3042dc6837a.tar.xz |
fix the warning generated (in gcc4) by the 'inline' keyword position.
patch by Pierre Lombard
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18389 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'bswap.h')
-rw-r--r-- | bswap.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -117,21 +117,21 @@ static inline uint64_t ByteSwap64(uint64_t x) #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; |