From: Jaroslav Kysela Date: Wed, 25 Jan 2012 09:40:25 +0000 (+0100) Subject: aplay: Add backward compatible endian macro definitions X-Git-Tag: rh-start~15 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=4b3b61129a911c00f1662acb3c1434a5dd2cb7f9;p=alsa-utils.git aplay: Add backward compatible endian macro definitions Signed-off-by: Jaroslav Kysela --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 5ab63a9..73a9544 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -58,6 +58,14 @@ #define LLONG_MAX 9223372036854775807LL #endif +#ifndef le16toh +#include +#define le16toh(x) __le16_to_cpu(x) +#define be16toh(x) __be16_to_cpu(x) +#define le32toh(x) __le32_to_cpu(x) +#define be32toh(x) __be32_to_cpu(x) +#endif + #define DEFAULT_FORMAT SND_PCM_FORMAT_U8 #define DEFAULT_SPEED 8000