aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext/event
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 17:36:43 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 17:36:43 +0000
commit0994283a7d427b0554398b912360312b621de8ee (patch)
treebe137fd02e83dc06596cea1b37ac6822bb360071 /lv2/lv2plug.in/ns/ext/event
parentbd1ba4a37fcd3f74935099127c0ed6c234ab7e5a (diff)
downloadlv2-0994283a7d427b0554398b912360312b621de8ee.tar.xz
Add compile test for all headers.
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/event')
-rw-r--r--lv2/lv2plug.in/ns/ext/event/event-helpers.h16
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 */