]> git.alsa-project.org Git - alsa-lib.git/commitdiff
test/playmidi1: fix compilation caused by conflict between midifile.h and ump_msg.h
authorJaroslav Kysela <perex@perex.cz>
Sun, 2 Feb 2025 18:18:25 +0000 (19:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 2 Feb 2025 18:22:05 +0000 (19:22 +0100)
It's a fast fix. The better way is to fix midifile.h or remote this example
(we have already some

Closes: https://github.com/alsa-project/alsa-lib/issues/436
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
test/playmidi1.c

index 831e95783f352edaaf846bfb8c54803b66f6e366..286aaa86e7b0d31ceeed37f109dca6e91e8d2e5b 100644 (file)
 #include <errno.h>
 #include <string.h>
 
+#include "../include/asoundlib.h"
+
 #include "midifile.h"          /* SMF library header */
 #include "midifile.c"          /* SMF library code */
 
-#include "../include/asoundlib.h"
 
 /* send the real-time time stamps (instead of midi ticks) to the ALSA sequencer */
 static int use_realtime = 0;