]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Define SND_LITTLE_ENDIAN or SND_BIG_ENDIAN locally.
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2001 15:39:55 +0000 (15:39 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2001 15:39:55 +0000 (15:39 +0000)
Fixed handling of non-linear formats now.

include/local.h

index 0905e304e273bfb2cbd388295a1f9f46bc1c25a2..7712b89a5ac2eadfef592fecb841da919cf27bbe 100644 (file)
@@ -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 {