diff options
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/event')
-rw-r--r-- | lv2/lv2plug.in/ns/ext/event/event-helpers.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lv2/lv2plug.in/ns/ext/event/event-helpers.h b/lv2/lv2plug.in/ns/ext/event/event-helpers.h index 8e29507..fcd13fe 100644 --- a/lv2/lv2plug.in/ns/ext/event/event-helpers.h +++ b/lv2/lv2plug.in/ns/ext/event/event-helpers.h @@ -22,13 +22,19 @@ #ifndef LV2_EVENT_HELPERS_H #define LV2_EVENT_HELPERS_H +#include <assert.h> #include <stdint.h> -#include <stdbool.h> -#include <string.h> #include <stdlib.h> -#include <assert.h> +#include <string.h> + #include "lv2/lv2plug.in/ns/ext/event/event.h" +#ifdef __cplusplus +extern "C" { +#else +# include <stdbool.h> +#endif + /** @file * Helper functions for the LV2 Event extension * <http://lv2plug.in/ns/ext/event>. @@ -246,5 +252,9 @@ lv2_event_write_event(LV2_Event_Iterator* iter, return true; } +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* LV2_EVENT_HELPERS_H */ |