]> git.alsa-project.org Git - alsa-lib.git/commitdiff
rawmidi: Fix SNDRV_RAWMIDI_INFO_STREAM_INACTIVE duplicate definition
authorJaroslav Kysela <perex@perex.cz>
Mon, 3 Nov 2025 15:01:34 +0000 (16:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Nov 2025 15:01:34 +0000 (16:01 +0100)
The origin of this define is in include/alsa/sound/uapi/asound.h included from
include/local.h. Skip redefinition in the internal build.

Fixes: e6d0db9d ("rawmidi: Fix the prefix of the inactive stream flag")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/rawmidi.h

index f3676d293b42d70ffaed4b6e6bc5fadb98a13d11..554e706f0da265aa474be34b063bfe4a24314502 100644 (file)
@@ -102,7 +102,9 @@ typedef enum _snd_rawmidi_read_mode {
 /** rawmidi info bit flags */
 #define SND_RAWMIDI_INFO_UMP                   0x00000008      /**< rawmidi is UMP */
 #define SND_RAWMIDI_INFO_STREAM_INACTIVE       0x00000010      /**< the selected substream is inactive */
+#ifndef SNDRV_RAWMIDI_INFO_STREAM_INACTIVE
 #define SNDRV_RAWMIDI_INFO_STREAM_INACTIVE     SND_RAWMIDI_INFO_STREAM_INACTIVE /* only for compatibility */
+#endif
 
 int snd_rawmidi_open(snd_rawmidi_t **in_rmidi, snd_rawmidi_t **out_rmidi,
                     const char *name, int mode);