mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Get rid of enum type checking ugly trick
This commit is contained in:
parent
78af661d60
commit
08232943a2
6 changed files with 36 additions and 96 deletions
|
|
@ -10,15 +10,6 @@
|
|||
#define SND_BIG_ENDIAN SNDRV_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
//#define SND_ENUM_TYPECHECK
|
||||
|
||||
#ifdef SND_ENUM_TYPECHECK
|
||||
#define snd_enum_to_int(v) ((unsigned int)(unsigned long)(v))
|
||||
#define snd_int_to_enum(v) ((void *)(unsigned long)(v))
|
||||
#define snd_enum_incr(v) (++(unsigned long)(v))
|
||||
#else
|
||||
#define snd_enum_to_int(v) (v)
|
||||
#define snd_int_to_enum(v) (v)
|
||||
#define snd_enum_incr(v) (++(v))
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue