clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 0e14d77ae11436c283b3f4308952c7554f7d0ca0
parent 29e390c402e30281488259140c4255c82a798f94
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 12 Dec 2014 12:34:29 +0100

Fix build, and builds on mac too

Diffstat:
Minclude/clap/midi/parser.c | 2--
Mtests/dlopen/dlopen.c | 4++++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/clap/midi/parser.c b/include/clap/midi/parser.c @@ -298,7 +298,6 @@ clap_midi_convert(const uint8_t *in, event->type = CLAP_EVENT_NOTE_OFF; event->note.key = parser.channel.param1; event->note.velocity = ((float)parser.channel.param2) / 127.0f; - event->note.events = NULL; event->note.pitch = clap_midi_pitches[event->note.key]; return; @@ -306,7 +305,6 @@ clap_midi_convert(const uint8_t *in, event->type = CLAP_EVENT_NOTE_ON; event->note.key = parser.channel.param1; event->note.velocity = ((float)parser.channel.param2) / 127.0f; - event->note.events = NULL; event->note.pitch = clap_midi_pitches[event->note.key]; return; diff --git a/tests/dlopen/dlopen.c b/tests/dlopen/dlopen.c @@ -1,6 +1,10 @@ #include <stdio.h> #include <dlfcn.h> +#ifndef RLTD_DEEPBIND +# define RTLD_DEEPBIND 0 +#endif + int main(int argc, char **argv) { void *handle1 = dlopen(argv[1], RTLD_NOW | RTLD_LOCAL | RTLD_DEEPBIND);