mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix endian check in local.h
SNDRV_LITTLE_ENDIAN and SNDRV_BIG_ENDIAN checks have been removed from sound/asound.h during UAPI header move, and this resulted in a wrong detected endian. Move together with the similar check for SND_*_ENDIAN at the earlier place in local.h. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1b428e7719
commit
72bbf96e1f
1 changed files with 10 additions and 7 deletions
|
|
@ -44,6 +44,16 @@
|
|||
#define RTLD_NOW 0
|
||||
#endif
|
||||
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define SND_LITTLE_ENDIAN
|
||||
#define SNDRV_LITTLE_ENDIAN
|
||||
#elif __BYTE_ORDER == __BIG_ENDIAN
|
||||
#define SND_BIG_ENDIAN
|
||||
#define SNDRV_BIG_ENDIAN
|
||||
#else
|
||||
#error "Unsupported endian..."
|
||||
#endif
|
||||
|
||||
#define _snd_config_iterator list_head
|
||||
#define _snd_interval snd_interval
|
||||
#define _snd_pcm_info snd_pcm_info
|
||||
|
|
@ -168,13 +178,6 @@
|
|||
#include "seq_midi_event.h"
|
||||
#include "list.h"
|
||||
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define SND_LITTLE_ENDIAN
|
||||
#endif
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
#define SND_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
struct _snd_async_handler {
|
||||
enum {
|
||||
SND_ASYNC_HANDLER_GENERIC,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue