]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aplay: Add backward compatible endian macro definitions
authorJaroslav Kysela <perex@perex.cz>
Wed, 25 Jan 2012 09:40:25 +0000 (10:40 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 12 Sep 2012 13:54:39 +0000 (15:54 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c

index 5ab63a99e416235c3c791d9e5c1e50b0cce08764..73a954477edce762e9d362adab4c9f816c65a7b5 100644 (file)
 #define LLONG_MAX    9223372036854775807LL
 #endif
 
+#ifndef le16toh
+#include <asm/byteorder.h>
+#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