From bdb2618f96e8df310c08a584df5f108c4198ccd3 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 28 Aug 2001 15:39:55 +0000 Subject: [PATCH] Define SND_LITTLE_ENDIAN or SND_BIG_ENDIAN locally. Fixed handling of non-linear formats now. --- include/local.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/local.h b/include/local.h index 0905e304..7712b89a 100644 --- a/include/local.h +++ b/include/local.h @@ -78,6 +78,13 @@ typedef struct sndrv_seq_event snd_seq_event_t; #include "asoundlib.h" #include "list.h" +#if __BYTE_ORDER == __LITTLE_ENDIAN +#define SND_LITTLE_ENDIAN +#endif +#if __BYTE_ORDER == __BIG_ENDIAN +#define SND_BIG_ENDIAN +#endif + extern int snd_async_signo; struct _snd_async_handler { -- 2.47.1