Skip to content

Commit

Permalink
macosx: fix build
Browse files Browse the repository at this point in the history
...
  • Loading branch information
mrpapersonic committed Apr 28, 2024
1 parent 8d58f3a commit 6b56027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -164,7 +164,7 @@ case "${host_os}" in
darwin*)
AC_MSG_RESULT([found Darwin host])

AC_SUBST([OSX_LDADD], [-lSDL2main -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework IOKit])
AC_SUBST([OSX_LDADD], ["-lSDL2main -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework IOKit"])

use_macosx=yes
;;
Expand Down
6 changes: 3 additions & 3 deletions sys/macosx/midi-macosx.c
Expand Up @@ -33,9 +33,9 @@
#include <CoreMIDI/MIDIServices.h>
#include <CoreAudio/HostTime.h>

static MIDIClientRef client = NULL;
static MIDIPortRef portIn = NULL;
static MIDIPortRef portOut = NULL;
static MIDIClientRef client = 0;
static MIDIPortRef portIn = 0;
static MIDIPortRef portOut = 0;

static int max_outputs = 0;
static int max_inputs = 0;
Expand Down

0 comments on commit 6b56027

Please sign in to comment.