From 8f15b34b095b3897f75ac96d9cdb8959ac9cb21e Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 1 May 2016 10:16:48 -0400
Subject: [PATCH] show both ALSA and OSS midi apis if available

---
 pd/src/s_midi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pd/src/s_midi.c b/pd/src/s_midi.c
index 4858fe20b..806bb0948 100644
--- a/pd/src/s_midi.c
+++ b/pd/src/s_midi.c
@@ -525,13 +525,13 @@ void sys_get_midi_apis(char *buf)
 void sys_get_midi_apis2(t_binbuf *buf)
 {
     int n = 0;
-#ifndef USEAPI_ALSA
-    binbuf_addv(buf, "si", gensym("OSS"), API_DEFAULT); n++;
-#else
+#ifdef USEAPI_OSS
+    binbuf_addv(buf, "si", gensym("OSS"), API_DEFAULT);
     n++;
 #endif
 #ifdef USEAPI_ALSA
-    binbuf_addv(buf, "si", gensym("ALSA"), API_ALSA); n++;
+    binbuf_addv(buf, "si", gensym("ALSA"), API_ALSA);
+    n++;
 #endif
     /* then again, if only one API (or none) we don't offer any choice. */
 //    if (n < 2)
-- 
GitLab