From e5fac215b15506fb7b5d1238ee5e579a427eefd6 Mon Sep 17 00:00:00 2001 From: "Pascal S. de Kloe" Date: Wed, 4 Apr 2007 13:44:50 +0200 Subject: Check for previous swap32 definition before writing a new swap32 function. --- src/libmusepack/musepack/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libmusepack/musepack') diff --git a/src/libmusepack/musepack/internal.h b/src/libmusepack/musepack/internal.h index 42a0e7156..f86b45bb3 100644 --- a/src/libmusepack/musepack/internal.h +++ b/src/libmusepack/musepack/internal.h @@ -8,6 +8,7 @@ enum { MPC_DECODER_SYNTH_DELAY = 481 }; +#ifndef swap32 /// Big/little endian 32 bit byte swapping routine. static inline mpc_uint32_t swap32(mpc_uint32_t val) { @@ -16,6 +17,7 @@ mpc_uint32_t swap32(mpc_uint32_t val) { (mpc_uint32_t)src[0] | ((mpc_uint32_t)src[1] << 8) | ((mpc_uint32_t)src[2] << 16) | ((mpc_uint32_t)src[3] << 24); } +#endif /// Searches for a ID3v2-tag and reads the length (in bytes) of it. /// \param reader supplying raw stream data -- cgit v1.2.3